Skip to content

Commit

Permalink
Set SSR target webworker for Vercel edge (#4884)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Sep 27, 2022
1 parent c6cfc63 commit fb91d04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-comics-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---

Set SSR target webworker
1 change: 1 addition & 0 deletions packages/integrations/vercel/src/edge/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default function vercelEdge(): AstroIntegration {
}

vite.ssr = {
target: 'webworker',
noExternal: true,
};
}
Expand Down

0 comments on commit fb91d04

Please sign in to comment.