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

CORS error because of autogenerated .dev.vars file #103

Closed
j3sch opened this issue Nov 6, 2023 · 2 comments
Closed

CORS error because of autogenerated .dev.vars file #103

j3sch opened this issue Nov 6, 2023 · 2 comments

Comments

@j3sch
Copy link
Contributor

j3sch commented Nov 6, 2023

Bun autogenerates the .dev.vars file and overrides the values after every install. It takes the keys and values from the .env.local file.
In the .env.local the keys are named NEXT_PUBLIC_APP_URL, but in the .dev.vars file it must be APP_URL. Therefore I get the error APP_URL is not set. CORS errors may occur. displayed.

@timothymiller
Copy link
Owner

This has been fixed in a previous PR. Please try it again in the latest master branch, and let me know how it works.

@j3sch
Copy link
Contributor Author

j3sch commented Nov 6, 2023

nice, now it works perfect. Thank you!

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