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?