Does railpack builder consider the npm postinstall command as a build step
arhammusheer
HOBBYOP

6 months ago

I am deploying a nextjs app with prisma

the way I do local builds is

  • npm ci (installs node modules)
  • npm postinstall (Automatically runs after npm ci) - This step is my prisma generate
  • npm run build
  • npm start (Deploy command)

Looking into railpack logs it seems it's ignoring postinstall. Am i doing something wrong here?

$10 Bounty

6 Replies


6 months ago

RAILPACK_INSTALL_CMD="npm ci && npm postinstall" mayhaps?



arhammusheer
HOBBYOP

6 months ago

I could do this but just wanted to be sure if this is intentional or a bug


arhammusheer
HOBBYOP

6 months ago

If postinstall is added later i'd be doing a double post install step


iloveitaly
HOBBY

6 months ago

@croissant what does your package.json look like?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...