Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea: symlink .env? #114

Open
StephenFluin opened this issue Apr 6, 2023 · 1 comment
Open

idea: symlink .env? #114

StephenFluin opened this issue Apr 6, 2023 · 1 comment

Comments

@StephenFluin
Copy link
Contributor

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
Copy link
Member

npty commented Apr 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants