R
Railway

✋|help

Payload CMS + Nextjs Deployment Failed during build process

Nnball8/22/2023
Using the template courtesy of @Brody with Next.js added [as seen here](https://github.com/payloadcms/payload/tree/master/examples/custom-server), the UI states deployment fails during build process, however it appears that the build completes, but the push times out. [Here's the repo](https://github.com/ballermatic/Payload-Railway) and deployment ID is e2d1ce03-417c-4c0e-aa79-d31db48d0ac7
Bbrody1928/22/2023
does my unmodified template work?
Nnball8/22/2023
Yes, it does. I'll ping the Payload crew also. The combined app works perfectly on local dev.
Push stalls at 3.069GB of 3.1GB
Bbrody1928/22/2023
that's likely far too big for the image
what's the image size of my unmodified template?
Nnball8/22/2023
I'll check. That does seem awfully large. The repo isn't exactly feature rich, either.
Bbrody1928/22/2023
if the unmodified repo is large, I'll see what I can do to trim it down
Nnball8/22/2023
Unmodified is 1.357GB
Next is more than doubling the footprint. Sheesh.
Would bumping my plan up to Pro solve for this?
Bbrody1928/22/2023
i doubt it, ill see if i can optimize the dockerfile further
Nnball8/22/2023
There are a pile of dev dependencies but very few for prod
"dependencies": {
"dotenv": "^16.3.1",
"express": "^4.17.1",
"path": "^0.12.7",
"next": "^13.4.19",
"next-sitemap": "^4.2.2",
"payload": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-wrap-balancer": "^1.1.0"
},
Bbrody1928/22/2023
yeah i was planning on moving them around and doing a prune
Nnball8/22/2023
I appreciate your help with this. Thank you so much.
Bbrody1928/22/2023
no problem! 🙂
Nnball8/22/2023
I could separate the front and back then use private networking for fetch calls etc. I was hoping a combined app would have less DevOps overhead but it appears I was mistaken.
Bbrody1928/22/2023
thats the way id go regardless of image size
Nnball8/22/2023
Understood. Generally how I do it too, but wanted to try this alternative approach.
Bbrody1928/22/2023
got the image down to ~440mb by using nixpacks, dont know what i was doing wrong with the dockerfile given the final project files are under 1mb acording to ls, either way the template and repo has been updated and sorry for the inconvenience
Nnball8/22/2023
Wow! That's great. Thank you so much!
Bbrody1928/22/2023
no problem!

Looking for more? Join the community!

Recommended Posts
Hosting a modded Minecraft serverHi guys! I'm trying to host a modded minecraft server through Railway using the `Minecraft Server` tCan't connect to RedisThis is the error I am getting. What I have checked so far * Made sure I used the env variables provHello everyone, i'm trying to make a python websocket using websockets library also flaskso basically i have this -> ```py async def main(): url = os.environ.get('RAILWAY_URL', 'localExtension of Payment Due Date for SubscriptionIs there a way I can request for a brief extension of a few days for my upcoming payment?Hello Everyone! I am facing some problem related to deploying my nodejs application.I have deployed my nodejs application using github, but do not know how can I connect phpmyadmin so RedeployHey there, is there away to start a redploy using the Railway APIKafka Connectioncould anyone help me setup kafka cluster? I've went through the deployment process but getting a conHosting a monorepo with a Vite/Svelte Front and and a Fiber BackendI am trying to host my monorepo application within railway however I am facing some issues when tryiUnexpected timeouts and slow downsHey guys! I'm writing this post since we've been experimenting some slow downs and timeouts during tconfigure variable in VM ARGUMENTSI would like to know how do I create a variable "VM Arguments" in the railway environment? currentluhmm i think i filled the entire disk somehowservice id: 66b587c8-3c50-4dd0-8dfa-394ade04a0eci want to deploy a wordpres, is it possible?project id fb928ae2-62f0-4f8f-be68-9f7902efbebdBilled per usage plan with carryoverHey guys, I'm currently on a usage based plan but my app is only projected to use $1.70/month. Will How to use the Kafka project?I'm relatively new to Kafka and I want to publish and consume events to the Kafka running in a kafkaCannot login to Railway.app this morningHere's what I'm doing to login: I go to railway.app, and select Login enter my email address and preRelative path issueI am trying to read some Json files and parse them with one of my services. Locally it works fine. Can't run Railway CLI down command with project tokenhey , it is possible to run the railway down command with railway project token without logging in. Ruby on Rails Deployment with database and redisi had a few questions about linking my database and redis server within railway app ... I tried but Lost all my 20$ credits out of no whereSo i just got an email saying my projects needs 3$ in credits, but suddenly when i check? my whole 2any reason why my usage suddenly jumps to 4GB when there are no tasks running?The app had no requests for for the entire day but the usage jumped, any reason why this could happe