🤖 Assemble, configure, and deploy autonomous AI Agents in your browser.
GNU General Public License v3.0
31.29k
stars
9.21k
forks
source link
NEXT_PUBLIC_VERCEL_ENV="development" in .env not respected when npm run start #1414
Open
yhyu13 opened 9 months ago
Please check that this issue hasn't been reported before.
Expected Behavior
I essentially want to login as local auth even when npm run start, (because dev no opt the frontend web page is just way toooo slow!)
While in .env
with npm run dev, all is fine
But when running with npm run start, NEXT_PUBLIC_VERCEL_ENV switched to production, not respecting what .env tells it to be!
I have to manually modify code to make local auth work with optimized front end code
https://github.com/yhyu13/AgentGPT/blob/710a46d98205069bce867633b7c9a489c54fcc6d/next/src/server/auth/index.ts#L65
Current behaviour
v1.0.0 release commit
Steps to reproduce
running with npm run build && npm run start instead of npm run dev
Possible solution
No response
Which Operating Systems are you using?
Acknowledgements