Eric Burel @ericburel.tech · Feb 22

I have some code referencing environment variables to get the current survey edition unique identifier, like "js2022" for instance. Let's abstract this a bit by crafting a centralized "publicConfig.ts" In Next we have to prefix env vars with NEXT_PUBLIC to use them client-side but not here it seems

0 likes 1 replies

?

Replies

Eric Burel · Feb 22

Checking how the development instance works... bad surprise, my import alias didn't actually work 😂 I don't get what's wrong, need to read more docs... In the past in Next we also had to tweak the compiler in addition to the tsconfig, maybe it's similar here? docs.astro.build/en/guides/al...