'KILLED' NextJS Runtime NixPacks Build
xevion
HOBBYOP

a year ago

Solved

51 Replies

xevion
HOBBYOP

a year ago

5bce27d5-0216-4700-b2fc-f3a7f9644cba


xevion
HOBBYOP

a year ago

It's in a constant loop just restarting, I think?


brody
EMPLOYEE

a year ago

v2 builder?


xevion
HOBBYOP

a year ago

No


xevion
HOBBYOP

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


xevion
HOBBYOP

a year ago

been doing this for like 15 minutes


brody
EMPLOYEE

a year ago

you're ending up installing packages twice, just use true as the build command


xevion
HOBBYOP

a year ago

sure but i doubt thats the problem


brody
EMPLOYEE

a year ago

show me the build plan after you've made the change


xevion
HOBBYOP

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                  ║
╚════════════════════════════════════════════════════════════════╝

brody
EMPLOYEE

a year ago

your screenshot, is that deploy or build logs?


xevion
HOBBYOP

a year ago

Deploy


brody
EMPLOYEE

a year ago

do you have resource limits set?


xevion
HOBBYOP

a year ago

Yeah they're pretty low, 1Gb/1 VCPU


brody
EMPLOYEE

a year ago

remove them please


xevion
HOBBYOP

a year ago

kk

1333637003039998000


brody
EMPLOYEE

a year ago

i.e. set to 8/8


xevion
HOBBYOP

a year ago

done


brody
EMPLOYEE

a year ago

let me know how that goes


xevion
HOBBYOP

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


xevion
HOBBYOP

a year ago

i wanted private networking to keep latency to my CMS low


brody
EMPLOYEE

a year ago

that would be within your code


xevion
HOBBYOP

a year ago

i mean yeah. i'm scouring docs rn but the closest thing I have found is obscure asf


xevion
HOBBYOP

a year ago

someone else has to have done SSG on Railway without doing some insane setup


xevion
HOBBYOP

a year ago

i would be surprised if one of the leading features of NextJS is unsupported on Railway


brody
EMPLOYEE

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


xevion
HOBBYOP

a year ago

i mean i was doing that; i just added a network request to my CMS and now im fucked


xevion
HOBBYOP

a year ago

aight now it's working


brody
EMPLOYEE

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


xevion
HOBBYOP

a year ago

yup that was screwing me immediately


brody
EMPLOYEE

a year ago

I mean, use a heathcheck even if you weren't doing a build during runtime, it's just good practice 🙂


xevion
HOBBYOP

a year ago

yea this project and most of mine tend to be hobbyist stuff


xevion
HOBBYOP

a year ago

this one will eventually be an earner if i do it right


brody
EMPLOYEE

a year ago

sweet!


xevion
HOBBYOP

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


xevion
HOBBYOP

a year ago

the fact that none of this stuff can be solved within NextJS makes me think it's intentional on their part


xevion
HOBBYOP

a year ago

i wouldn't be considering switching to an edge platform if the build process was more configurable


brody
EMPLOYEE

a year ago

we will be revisiting build v2 once we are fully on metal


xevion
HOBBYOP

a year ago

i await


xevion
HOBBYOP

a year ago

solved methinks


brody
EMPLOYEE

a year ago

awesome


xevion
HOBBYOP

a year ago

ur not gonna believe this the healthcheck refuses to work


xevion
HOBBYOP

a year ago

`Attempt #8 failed with status 404:


brody
EMPLOYEE

a year ago

your app returned a 404


brody
EMPLOYEE

a year ago

it needs to return 200


xevion
HOBBYOP

a year ago

wait i think i'm stupid


xevion
HOBBYOP

a year ago

it's just a path not a host/port+path combo


brody
EMPLOYEE

a year ago

correct, it's a healthcheck path


xevion
HOBBYOP

a year ago

<:lfg:786867302888505364> this is a signal that i need to wind down for the night. brain is off


brody
EMPLOYEE

a year ago

grab some carrots and ranch and have a chill night


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...