diff --git a/packages/astro/src/vite-plugin-env/index.ts b/packages/astro/src/vite-plugin-env/index.ts index df11534ca..e602a675e 100644 --- a/packages/astro/src/vite-plugin-env/index.ts +++ b/packages/astro/src/vite-plugin-env/index.ts @@ -77,7 +77,7 @@ export default function envVitePlugin({ config: astroConfig }: EnvPluginOptions) // BUT we only want to inject private keys referenced in the file. // We overwrite this value on a per-file basis. 'import.meta.env': `({})`, - }) + }); pattern = new RegExp( // Do not allow preceding '.', but do allow preceding '...' for spread operations '(?