Next.js deploy with build folder - javascript

I am new to next and wanted to ask if i can deploy my app on netlify with build folder ?? if yes how?
i tried to upload the .next folder but netlify says "please upload folder with index.html in it".

Related

How to run AEM react SPA ui.frontend folder in separate cloud server

Inside AEM ui.frontend folder, i'm running local dev environment and pulling component content json(model.json) from adobecloud server by setting cloud url as proxy in package.json instead of my local AEM url.
Now i'm moving this whole ui.frontend folder as individual repo to cloud server and deployed and triggered build where dist folder will generated there inside the same folder and finally ran npm start for the dist folder.
While hitting the cloud url for the builded ui.frontend folder, JS and CSS are loading But it's not accessing the right model.json where AEM content is coming from different cloud.
Actual issue facing here is, it's not hitting the right Url which given in the REACT_APP_PAGE_MODEL_PATH in the .env file.
It's just adding the current domain url with the AEM cloud url given in REACT_APP_PAGE_MODEL_PATH.
.env file
PUBLIC_URL=./
REACT_APP_PAGE_MODEL_PATH=https://publish-p76602-e663929.adobeaemcloud.com/content/wknd-spa-react/us/en.model.json
Actual Url constructing to get the content:
{{HOSTED_DOMAIN_URL}}https://publish-p76602-e663929.adobeaemcloud.com/content/wknd-spa-react/us/en.model.json
Can u please help out how to fix this issue or how to make AEM frontend folder run in separate cloud which can fetch only content(model.json) alone from AEM hosted cloud.
Thanks in advance!

Deploying React app on Netlify returns 404 page not found

It deploys successfully, but shows that there are no pages to show. Although the zip file generated has all the data needed.
I have my netlify linked with the correct git repo, so I put my base directory to as frontend folder, since I understand that it needs to go there.
What am I doing wrong?
Publish directory should point to directory of your build, i assume that in your case its build folder because you are only deploying /frontend folder here

VueJS/NuxtJs: How to upload image file and save it to the static folder of nuxtjs project?

Is it possible the image file must be save in the static folder of nuxtProject? Instead it will save in the backend server using axios. Sorry, I cant gave an example code because i dont have an idea for this. the plan is will save on the static folder and send the frontend url to the DB.
It is may be impossible, because before deploy we build nuxtjs project using "npm run build" command. Then inside project folder we get a new folder name "dist" and the content of "dist" folder we upload our hosting. So, it's a build project we uploaded.
After some day we update some codes, images or others. Then we again build nuxtjs project using "npm run build" and the content of "dist" folder we upload our hosting.
So, I think is not a proper developing way and wrong way.

Do the images in the assets folder also get deployed in a Vue project?

Hello guys so as you can see from the title this is my first time working on a project. I’m using Vue, so when I deploy after running the “npm run build” and uploading the index.html.
Where does the assets folder go, I have a lot of images in it and I’m referencing them in my project. Does any of this change after deployment?

How do I upload my node.js web app to openshift? It is NOT on git, but just on my computer?

Ok so locally I have saved a lot of files in a folder, and this web app is just on my computer. It is not on github and I don't want to upload it to github (I don't want it open sourced). So it's just in folders on my computer, and when I run it I open command prompt, go to the folder it's in, and go node server.js.
So, how in the world do I upload all those needed files into openshift hosting so that this web app can finally be online? All they are talking about is doing it via the command prompt, but I mean it is so many files, like all the little images, and all that. Do I really have to type it all manually somehow in the command? Isn't there an easier way to just click "Upload" somewhere and just select the files I need, kind of like uploading images to photobucket or facebook?
I am a beginner at this, I've never uploaded a web app.
Git is not Github.
Github is onlice public service and git is just a protocol.
You need to create local git repository on your local git server and commit your files to it.
There is a simple guide about doing it for openshift.

Categories