#How can I set a vite configuration option BEFORE astro.config.mjs is loaded? Environment Variable?

4 messages · Page 1 of 1 (latest)

hollow prism
#

I am trying to get Astro (vite) to properly respect symlinks (vite.resolve.preserveSymlinks = true) so I can symlink my astro.config.mjs into the build directory.

Is there a way to do this? Perhaps undocumented? I am thinking environment variable but can't make sense of the Astro docs on this, and not sure if vite ones are applied?

lilac plume
#

Hi, why do you want the config file in your build dir? It's meant to sit at the project root, just curious why you need it in build instead

hollow prism
#

trying to separate out the application files from the config