Skip to content

Commit

Permalink
fixes env
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderniebuhr committed Mar 26, 2024
1 parent b0a660f commit 3d59727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ export default function createIntegration(args?: Options): AstroIntegration {
vite.build.rollupOptions ||= {};
vite.build.rollupOptions.output ||= {};
// @ts-expect-error
vite.build.rollupOptions.output.banner ||= 'globalThis.process ??= {};';
vite.build.rollupOptions.output.banner ||=
'globalThis.process ??= {}; globalThis.process.env ??= {};';

vite.build.rollupOptions.external = _config.vite.build?.rollupOptions?.external ?? [];

Expand Down

0 comments on commit 3d59727

Please sign in to comment.