madders
Monorepo env failure
i am working on a turbo repo mono repo application that has this folder structure.
./apps/admin-server
./apps/admin-ui
the admin-server is an adonis application and the ui is a react application
the issue i am facing is that when using railway or coolify to host the server application, I paste paste my env variables in the ui. when i run npm run start, i run the built version of the admin server but it doesn't pick up the .env variables. usually when i host an non monorepo adonis applications, the application picks ups the environment variables but it looks like it doesn't pick it up because the built application is found in app/admin-server/build. it works on my machine but because i have postbuild script that moves the .env from the ./apps/admin-server to ./apps/admin-server/build but i am unwilling to upload my .env file to github. Is a solution anyone uses
5 replies