Build dir is not persisted for deployes
mkontsek
TRIALOP

2 years ago

Locally:

  • run pnpm build:cms

  • see that the dist dir is created

  • run pnpm start:cms

  • see that the cms app starts

On Railway:

  • run pnpm build:cms

  • logs show that the dist dir existing, I think?

  • run pnpm start:cms

  • see error that the dist dir does not exist.

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies

brody
EMPLOYEE

2 years ago

You likely just have the paths wrong, can you please send the package.json that contains these scripts?


Loading...