#dev working, build broken

3 messages · Page 1 of 1 (latest)

kindred flower
#

I appear to have the opposite problem to what I did a few days ago, dev runs fine but it won't build. Gives a very unhelpful vite error:

 error   Unexpected token (83:8) in /Users/rcarr/Coding/active/blog/node_modules/.pnpm/astro@2.0.0/node_modules/astro/dist/core/create-vite.js
  File:
    /Users/rcarr/Coding/active/blog/node_modules/.pnpm/astro@2.0.0/node_modules/astro/dist/core/create-vite.js:83:8
  Code:
    81:     envPrefix: ((_a = settings.config.vite) == null ? void 0 : _a.envPrefix) ?? "PUBLIC_",
    82:     define: {
    83:       "import.meta.env.SITE": settings.config.site ? JSON.stringify(settings.config.site) : "undefined"
                ^
    84:     },
    85:     server: {

Anyone got any ideas?

Code:
https://github.com/feraleyebrows/sturdy-potato

GitHub

Contribute to feraleyebrows/sturdy-potato development by creating an account on GitHub.

kindred flower
#

nevermind figured it out, was importing the astro config in a file

velvet lintel