51 Replies
a year ago
5bce27d5-0216-4700-b2fc-f3a7f9644cba
a year ago
It's in a constant loop just restarting, I think?
a year ago
v2 builder?
a year ago
No
a year ago
[phases.build]
cmds = ["pnpm install"] # we don't build anything, just install dependencies
[start]
cmd = 'pnpm run build && pnpm run start'nixpacks.toml
a year ago
been doing this for like 15 minutes
a year ago
you're ending up installing packages twice, just use true as the build command
a year ago
sure but i doubt thats the problem
a year ago
show me the build plan after you've made the change
a year ago
╔═══════════════════════ Nixpacks v1.31.0 ═══════════════════════╗
║ setup │ nodejs_18, pnpm-9_x, openssl ║
║────────────────────────────────────────────────────────────────║
║ install │ npm install -g corepack@0.24.1 && corepack enable ║
║ │ pnpm i --frozen-lockfile ║
║────────────────────────────────────────────────────────────────║
║ build │ true ║
║────────────────────────────────────────────────────────────────║
║ start │ pnpm run build && pnpm run start ║
╚════════════════════════════════════════════════════════════════╝a year ago
your screenshot, is that deploy or build logs?
a year ago
Deploy
a year ago
do you have resource limits set?
a year ago
Yeah they're pretty low, 1Gb/1 VCPU
a year ago
remove them please
a year ago
kk

a year ago
i.e. set to 8/8
a year ago
done
a year ago
let me know how that goes
a year ago
honestly 50/50 chance i'll take off to Vercel at this point. I can't find any options for disabling SSG while maintaining runtime ISR
a year ago
i wanted private networking to keep latency to my CMS low
a year ago
that would be within your code
a year ago
i mean yeah. i'm scouring docs rn but the closest thing I have found is obscure asf
a year ago
someone else has to have done SSG on Railway without doing some insane setup
a year ago
i would be surprised if one of the leading features of NextJS is unsupported on Railway
a year ago
I've done SSG during build and SSR during runtime with Next, granted I didn't connect to a database, but it's possible
a year ago
i mean i was doing that; i just added a network request to my CMS and now im fucked
a year ago
aight now it's working
a year ago
make sure you are using a health check, otherwise we would route traffic to your app while it's still building during runtime
a year ago
yup that was screwing me immediately
a year ago
I mean, use a heathcheck even if you weren't doing a build during runtime, it's just good practice 🙂
a year ago
yea this project and most of mine tend to be hobbyist stuff
a year ago
this one will eventually be an earner if i do it right
a year ago
sweet!
a year ago
part of why i kinda don't want to fool around with Railway right now. idk. i can switch if it's a goner, long build times and no caching is an L, but i can deal. maybe V2 builder will come along in the next few months
a year ago
the fact that none of this stuff can be solved within NextJS makes me think it's intentional on their part
a year ago
i wouldn't be considering switching to an edge platform if the build process was more configurable
a year ago
we will be revisiting build v2 once we are fully on metal
a year ago
i await
a year ago
solved methinks
a year ago
awesome
a year ago
ur not gonna believe this the healthcheck refuses to work
a year ago
`Attempt #8 failed with status 404:
a year ago
your app returned a 404
a year ago
it needs to return 200
a year ago
wait i think i'm stupid
a year ago
it's just a path not a host/port+path combo
a year ago
correct, it's a healthcheck path
a year ago
<:lfg:786867302888505364> this is a signal that i need to wind down for the night. brain is off
a year ago
grab some carrots and ranch and have a chill night
a year ago
!s
Status changed to Solved brody • about 1 year ago