From fb91d04a5cb8f84f5b1be0a4e0c6cd61ec514736 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 27 Sep 2022 20:40:10 +0800 Subject: [PATCH] Set SSR target webworker for Vercel edge (#4884) --- .changeset/curvy-comics-smash.md | 5 +++++ packages/integrations/vercel/src/edge/adapter.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/curvy-comics-smash.md diff --git a/.changeset/curvy-comics-smash.md b/.changeset/curvy-comics-smash.md new file mode 100644 index 000000000..09c8f30bd --- /dev/null +++ b/.changeset/curvy-comics-smash.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vercel': patch +--- + +Set SSR target webworker diff --git a/packages/integrations/vercel/src/edge/adapter.ts b/packages/integrations/vercel/src/edge/adapter.ts index 72001be99..971aa8eae 100644 --- a/packages/integrations/vercel/src/edge/adapter.ts +++ b/packages/integrations/vercel/src/edge/adapter.ts @@ -44,6 +44,7 @@ export default function vercelEdge(): AstroIntegration { } vite.ssr = { + target: 'webworker', noExternal: true, }; }