Skip to content

Commit 77b97aa

Browse files
committed
fix astro build
1 parent 5960cb7 commit 77b97aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/astro/src/integration/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
8888
updateConfig({
8989
vite: {
9090
ssr: {
91-
noExternal: ['@sentry/astro'],
91+
// @sentry/node is required in case we have 2 different @sentry/node
92+
// packages installed in the same project.
93+
// Ref: https://github.com/getsentry/sentry-javascript/issues/10121
94+
noExternal: ['@sentry/astro', '@sentry/node'],
9295
},
9396
},
9497
});

0 commit comments

Comments
 (0)