H
Homarr15mo ago
Skeet

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 occurred
Error: 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)
Solution:
Gonna migrate to the Docker container ;0 ty
Jump to solution
3 Replies
Manicraft1001
Manicraft100115mo ago
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
Skeet
Skeet15mo ago
Gonna migrate to the Docker container ;0 ty
Manicraft1001
Manicraft100115mo ago
Sounds good 👍
Want results from more Discord servers?
Add your server