How does it work under the hood when I deploy a NextJS app with serverless functions?
I've deployed a Next13 app router project to Railway, and it worked surprisingly well without any hiccups.(funny, i can't seem to deploy to vercel for)
So Vercel takes the API routes and turns them into serverless functions, I"m not too familiar with how that works under the hood.
To my understanding, Railway does not do that, so what's happening under the hood? Is there a persistent express server or something?
11 Replies
Project ID:
N/A
N/A
its just a docker image that runs 24/7, your code is not modified in any way what so ever, the default next start command is
next start
and that is what railway will runoh i see, so it's as if my computer is running the code
i guess you could put it that way
i dont know what type of server
next start
runs, so if you want to dig deeper you could probably read the next docsside question, but how does "projects" in the dashboard vs each block in each project differ?
is it mostly just for organization?
or do my 2 blocks in the project share a computer?
yeah projects in the dashboard would be for separate projects.
blocks inside the projects, or their proper names, services and plugins are for everything that specific project needs, like backend, frontend, database, etc.
all the services and plugins would be on the same host (fancy term for computer (virtual machine)) and the services can communicate with each other internally via the private network
i see i see! thank you! that clears things up for me :)
no problem, any other questions?
no i think that's good for now!
awsome!