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

Fix #26 #27

Merged
merged 1 commit into from
Jan 26, 2022
Merged

Fix #26 #27

merged 1 commit into from
Jan 26, 2022

Conversation

lxsmnsyc
Copy link
Member

Resolves #26

@lxsmnsyc
Copy link
Member Author

I might have to re-evaluate the use of config.isProduction. I mean, it works even if the problem is on the user-side, however should we be more consistent with the mode being used rather than the ENV the user chose?

@amoutonbrady
Copy link
Member

amoutonbrady commented Jan 24, 2022

That change sounds totally fine to me! Thanks :)

As per your question, I reckon I'm not entirely sure I understand what the difference between mode and env is.
As per https://vitejs.dev/guide/env-and-mode.html#modes the env is populated according to the mode the user chose, which seems like what you did take advantage of.

Am I missing something?

@lxsmnsyc
Copy link
Member Author

There's a tiny bit of difference. mode actually derives its own value and I think, it is dependent on how vite is run i.e. vite is development. Meanwhile, env takes .env on a higher priority based on NODE_ENV

@amoutonbrady
Copy link
Member

Ah I see! I think for now the priority is to resolve the fact that HMR is not working properly. You solution is totally fine with me. If somehow this not coherent enough, I guess we can take it to the next step and tweak slightly. Thank you again 🙏🏻

@amoutonbrady amoutonbrady merged commit ff07380 into solidjs:master Jan 26, 2022
amoutonbrady added a commit that referenced this pull request Jan 26, 2022
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

Successfully merging this pull request may close these issues.

solid-refresh isn't used
2 participants