Eric Burel @ericburel.tech · Feb 16

Well actually I think the issue is that the context around "getStaticPaths" is not really a closure, if I want a value, I need to get it again in this function, separately Next.js works the same way actually This means some code is repeated twice, I need to abstract it by defining a function

0 likes 1 replies

?

Replies

Eric Burel · Feb 16

I need to setup a few more environment variables that are expected by underlying libs I've noticed some hard-written "process.env", they are problematic because Astro seems to use ESM where we use "import.meta.env" instead I need to use a global map instead