orbit
orbit copied to clipboard
discovery - determine method for loading env variables
Ability to load env variables for both server-side and static generation.
ENV vars should also have the ability to be applied during the application runtime to switch out the envs on the fly
possible example code API
//...
func main() {
// this should also work differently depending on if it is ssr or csr
orbit.LoadEnv("..path for env vars") // this will apply them on the client side & server side.
orbit.HandleFunc("/", func (r *orbit.Request) {
r.RenderPage() ///...
})
}
TODO:
- [ ] research next-js downfalls
- [ ] determine what orbit is currently required to do for ENV vars