I am deploying a nextjs application from a github repo and it works well with the normal "next start" command. However, I want to make use of the next standalone output. Adding output: "standalone" to the next config file results in the following warning: "next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead..
So then I created a new script command: "railway": "node .next/standalone/server.js" and added npm run railway as the new start command for the service. However this results in the public railway domain going to a railway error page.
Here are the logs on redeploy: