ENVIRONMENT variables are on the server, so it makes no sense for client-side Elm code to have access to them at runtime. Elm currently has no build-time flags, dev/test/prod environments like Rails, or other input besides the source files. If you want to have multiple versions of your Elm code controlled at compile-time, you should put them in Elm code (which can be imported as constants from wherever). You could generate this file from your ENVIRONMENT prior to running the compiler in your build process.
-- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
