Closed yuriifabirovskyi closed 2 years ago
I found solution. I can overwrite plugin configuration and disable it when ssr is building.
plugins: [{ ...sentryPlugin(), apply (config, { command }) { return command === 'build' && !config.build.ssr }, }]
I think, I need to create issue for vite-plugin-sentry to change plugin configuration globally.
I use vite-plugin-sentry to upload source maps to Sentry. But because there are two different builds for client and for SSR, the source maps are uploaded twice.