Can't build with yarn
root@homarr:/opt/homarr# yarn build
❌ Invalid environment variables: { NEXTAUTH_URL: [ 'Required' ] }
- error Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Build error occurredError: Invalid environment variables at /opt/homarr/node_modules/@t3-oss/env-nextjs/dist/index.js:1:792 at T (/opt/homarr/node_modules/@t3-oss/env-nextjs/dist/index.js:1:1010) at P (/opt/homarr/node_modules/@t3-oss/env-nextjs/dist/index.js:1:1401) at Object.<anonymous> (/opt/homarr/src/env.js:7:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:121:18)
3 Replies
Hi, you must copy the example.env to .env when you run using yarn. This is undocumented (for now) as this is only the case on the development branch
Solution
Gonna migrate to the Docker container ;0 ty
Sounds good 👍