What AWS server to use for NextJS deployment?
Unanswered
Wool sower gall maker posted this in #help-forum
Wool sower gall makerOP
I barely know about servers, will I be able to deploy it or I'm limited to using vercel?
20 Replies
theres also AWS amplify
you can also deploy as a standalone Node.js server with a VPS
@aardani theres also AWS amplify
Wool sower gall makerOP
oh okay, when deploying nextjs and nodejs together, I should start nodejs server and nextjs client separately?
@Wool sower gall maker oh okay, when deploying nextjs and nodejs together, I should start nodejs server and nextjs client separately?
you would need to export next.js project as a standalone nodejs server
then you can run those in there
i dont think you need to run then nextjs server, only the exported node.js files
@aardani i dont think you need to run then nextjs server, only the exported node.js files
Wool sower gall makerOP
So I would need two servers to host such project? And what do you mean by exported nodejs files
And not running nextjs server wouldnt cause ssr, ssg issues?
@Wool sower gall maker So I would need two servers to host such project? And what do you mean by exported nodejs files
my bad,
i meant you need to
i meant you need to
npm i , npm run build , npm run start in the server directly@aardani my bad,
i meant you need to `npm i` , `npm run build` , `npm run start` in the server directly
Wool sower gall makerOP
si that would start nextjs? what about nodejs
@Wool sower gall maker si that would start nextjs? what about nodejs
nextjs is using nodejs
@aardani nextjs is using nodejs
Wool sower gall makerOP
yeah, but it doesnt support websockets and not optimal for big backend, I have nodejs separately
@Wool sower gall maker yeah, but it doesnt support websockets and not optimal for big backend, I have nodejs separately
it should do since you are no longer hosting on vercel
your VPS is running 24/7
so does Next.js now
im not sure what your problem is now
you asked for Next.js. Not Node.js
@aardani you asked for Next.js. Not Node.js
Wool sower gall makerOP
Well I have both, all logic is in nodejs and nextjs is a frontend, so I need to deploy them together
alright then deploy them together? :v