Set SSR target webworker for Vercel edge (#4884)

This commit is contained in:
Bjorn Lu 2022-09-27 20:40:10 +08:00 committed by GitHub
parent c6cfc638fd
commit fb91d04a5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---
Set SSR target webworker

View file

@ -44,6 +44,7 @@ export default function vercelEdge(): AstroIntegration {
}
vite.ssr = {
target: 'webworker',
noExternal: true,
};
}