idea: symlink .env?
Opened this issue · 1 comments
StephenFluin commented
Right now developers have to run npm run setup
to get examples-web to work.
Could we use a symlink instead from examples-web/.env -> ../.env ?
Thoughts @npty? This might break windows though, I'm not 100% sure.
npty commented
The environment variables in examples-web/.env
are used in the web browser. So, we need to prefix them with NEXT_PUBLIC_
in order to load into the Next.js properly (here's their doc). However, we could move the wallet interaction logic to the server, so we don't need to prefix them, then we can use symlink to the root env.