orbit icon indicating copy to clipboard operation
orbit copied to clipboard

discovery - determine method for loading env variables

Open GuyARoss opened this issue 3 years ago • 0 comments

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

GuyARoss avatar Feb 10 '23 05:02 GuyARoss