Replies: 1 comment
-
Just popping in to say we just released this feature in 5.7.0 - |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While running dev server, developers can import variables from astro.config.mjs. However, when trying to build the project, these settings aren't accessible. Vite throws an error that's not easily traceable to the problem:
Coming from another SSG, it may appear counterintuitive that one's own site settings aren't accessible during the build. To make things worse, developers may only discover the issue upon deployment, as the dev server doesn't give any warnings about the issue.
I would find it helpful to add one or two lines to the docs about the config:
Beta Was this translation helpful? Give feedback.
All reactions