timothymiller / t4-app

A powerful cross-platform UI toolkit for building actually native iOS, Android, macOS, Windows, Linux, and Progressive Web Apps with React (Native).
https://t4stack.com
MIT License
1.31k stars 70 forks source link

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

Closed j3sch closed 8 months ago

j3sch commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

nice, now it works perfect. Thank you!