Allow type safe access to env (+ show nice errors on .env
not set)
#2405
nikitavoloboev
started this conversation in
Ideas
Replies: 1 comment
-
Haven't tested this yet, but we'll likely need to get the basic's from SolidStart's docs into TSR's pages for Start. https://docs.solidjs.com/configuration/environment-variables |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is Discord thread regarding this feature request too but it got forgotten about thus opening discussion/issue here.
Essentially it would be great to have type safe access to the env. Similar to what Astro is doing and perhaps t3-env.
This is prompted also by me receiving an error like this (which was hard to debug):
Because this was not set:
After I set the env in
.env
, things worked, I hope that can be improved/fixed too.Beta Was this translation helpful? Give feedback.
All reactions