Monorepo icon indicating copy to clipboard operation
Monorepo copied to clipboard

How to handle survey-specific code?

Open SachaG opened this issue 1 year ago • 0 comments

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?

SachaG avatar Oct 25 '24 22:10 SachaG