Devographics / Monorepo

Monorepo containing the State of JS apps
surveyform-sigma.vercel.app
Other
125 stars 50 forks source link

Handle public variables centralized config #241

Closed eric-burel closed 1 year ago

eric-burel commented 1 year ago

@SachaG just to keep track of this, see my latest commit: https://github.com/Devographics/Monorepo/commit/78dce79ef023783a495e1dade7ecdc6566b5d9b6

When checking for this public variable, you want to check for "NEXT_PUBLIC_ASSETS_URL" instead of just "ASSETS_URL", depending on the technology. You might want smth like so:

I've temporarily fixed the surveyform, using the old public config system

SachaG commented 1 year ago

I think the easiest solution is to just not use this system for client variables. We can manage those the "normal" way using process.env.FOO for now.