I want to deploy backend application. I defined environment variable. But when deploying the env variable are undefined.
I add env variable in .env from cleavr and in pm2 config. But nothing works.
Please can you help me, I spend 3 week-end on this problem.
Thanks.
It may be how the files are organized. If package.json and yarn.lock are only on the root folder and not also in the apps/backend folders, for instance, then the deployment won’t work.
Also, in Cleavr, there’d need to be a couple web apps created. Such as, one web app for backend where the subfolder in web app > settings > code repo is set to apps/backend and one for frontend set to apps/web.