dai-shi / waku

⛩️ The minimal React framework

Home Page:https://waku.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vite server restart by changing env files do not update env in globalThis.

hyoban opened this issue · comments

https://github.com/hyoban-repro/waku-env-repro

  1. start dev server
  2. change content in .env file

Thanks for reporting. Yeah, that's expected.
Does bare Vite+React handle it well?

Does bare Vite+React handle it well?

Yes, with import.meta.env

Does Vite hot reload or hard reload if you edit&save .env file?

I'm not sure how we could do it, and if it's a priority for us, but @Aslemammad might have some idea.

Does Vite hot reload or hard reload if you edit&save .env file?

hard reload

Thanks. I don't think it's a priority, and there are many tasks now, but it's good to know.

Yes, restarting the server is not a troublesome thing for me.

I'll look into it, would be happy to be assigned.

but, less priority please.

Moving to discussion / ideas for now.