Devographics / Monorepo

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

How to handle survey-specific code? #441

Open SachaG opened 1 month ago

SachaG commented 1 month ago

Currently, results uses a lot of survey-specific code (components, configs, etc.) which is all imported using webpack alias. But that means it has to live in monorepo instead of surveys.

Config such as colors, etc. could potentially be made available through the API (even though this is not always ideal since it's more work compared to just importing; and also it's harder to ensure proper types), but that doesn't work for components such as a survey's animated logo.

Is there a way to import from the survey repo based on the currently active editionId in results's .env file?