Setting --no-frozen-lockfile using nixpacks.
devcadotio
PROOP

8 months ago

Basically, what I'm trying to achieve is to add the --no-frozen-lockfile flag to pnpm i.

[phases.setup]
nixPkgs = ['nodejs', 'pnpm']

[phases.install]
cmd = 'pnpm install --no-frozen-lockfile'

[phases.build]
cmd = 'pnpm run build'
dependsOn = ['install']

[start]
cmd = 'pnpm start' 

Issue is - railway still tries to run pnpm i --frozen-lockfile.

Solved$10 Bounty

7 Replies

devcadotio
PROOP

8 months ago

031f2028-a6cf-4afd-ba70-7052ba0ce787


devcadotio
PROOP

8 months ago

0


8 months ago

Hey, can you try cmds = ['pnpm install --no-frozen-lockfile' ]?


devcadotio
PROOP

8 months ago

thanks


devcadotio
PROOP

8 months ago

that worked


8 months ago

Great! I'll mark this thread as solved.


8 months ago

!s


Status changed to Solved uxuz 8 months ago


Loading...