diff --git a/e2e-tests/nextjs/sentry.client.config.ts b/e2e-tests/nextjs/sentry.client.config.ts index 02fd6f22..4b899d6c 100644 --- a/e2e-tests/nextjs/sentry.client.config.ts +++ b/e2e-tests/nextjs/sentry.client.config.ts @@ -31,9 +31,7 @@ Sentry.init({ ], }); -if (process.env.NODE_ENV === 'development') { - Spotlight.init({ - debug: true, - integrations: [customIntegration()], - }); -} +Spotlight.init({ + debug: true, + integrations: [customIntegration()], +}); diff --git a/e2e-tests/nextjs/sentry.edge.config.ts b/e2e-tests/nextjs/sentry.edge.config.ts index b759fc5a..09dcbe80 100644 --- a/e2e-tests/nextjs/sentry.edge.config.ts +++ b/e2e-tests/nextjs/sentry.edge.config.ts @@ -12,5 +12,5 @@ Sentry.init({ // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, - spotlight: process.env.NODE_ENV === 'development', + spotlight: true, }); diff --git a/e2e-tests/nextjs/sentry.server.config.ts b/e2e-tests/nextjs/sentry.server.config.ts index 174462d8..858867f1 100644 --- a/e2e-tests/nextjs/sentry.server.config.ts +++ b/e2e-tests/nextjs/sentry.server.config.ts @@ -12,5 +12,5 @@ Sentry.init({ // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, - spotlight: process.env.NODE_ENV === 'development', + spotlight: true, }); diff --git a/packages/overlay/vite.config.ts b/packages/overlay/vite.config.ts index 278295d7..614b2283 100644 --- a/packages/overlay/vite.config.ts +++ b/packages/overlay/vite.config.ts @@ -36,9 +36,7 @@ export default defineConfig({ removeReactDevToolsMessagePlugin(), ], define: { - 'process.env.NODE_ENV': "'development'", - 'process.env.JEST_WORKER_ID': 1, - process: {}, + 'process.env.NODE_ENV': "'production'", }, resolve: { alias: { diff --git a/packages/overlay/vitest.config.ts b/packages/overlay/vitest.config.ts index ea384bb1..71962fae 100644 --- a/packages/overlay/vitest.config.ts +++ b/packages/overlay/vitest.config.ts @@ -1,7 +1,7 @@ /// // import tsconfigPaths from "vite-tsconfig-paths"; -import { resolve } from 'path'; +import { resolve } from 'node:path'; import { defineConfig } from 'vitest/config'; export default defineConfig({ @@ -12,7 +12,6 @@ export default defineConfig({ reporter: ['json'], }, globals: true, - // setupFiles: ["./src/test/setup-test-env.ts"], include: ['./test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], watchExclude: ['.*\\/node_modules\\/.*', '.*\\/dist\\/.*'], }, diff --git a/packages/sidecar/vite.config.ts b/packages/sidecar/vite.config.ts index b347fb96..6eba4067 100644 --- a/packages/sidecar/vite.config.ts +++ b/packages/sidecar/vite.config.ts @@ -8,8 +8,6 @@ const dependencies = Object.keys({ ...packageJson.devDependencies, }); -const noExternal = process.env.NODE_ENV === 'production' ? dependencies : []; - export default defineConfig({ build: { ssr: './src/main.ts', @@ -19,7 +17,4 @@ export default defineConfig({ external: [...dependencies, ...builtinModules.map(x => `node:${x}`)], }, }, - ssr: { - noExternal, - }, }); diff --git a/packages/spotlight/README.md b/packages/spotlight/README.md index fd1758a8..982a5fbf 100644 --- a/packages/spotlight/README.md +++ b/packages/spotlight/README.md @@ -2,4 +2,4 @@ This package combines the Overlay from `@spotlightjs/overlay` and the sidecar from `@spotlightjs/sidecar`. -This means, you only need to install one package and you get everything required for spotlight. Nice! +This means, you only need to install one package and you get everything required for Spotlight. Neat! diff --git a/packages/spotlight/vite.config.ts b/packages/spotlight/vite.config.ts index ec89cfa4..132a64be 100644 --- a/packages/spotlight/vite.config.ts +++ b/packages/spotlight/vite.config.ts @@ -17,8 +17,6 @@ export default defineConfig({ sidecar: resolve(__dirname, 'src/sidecar.ts'), 'vite-plugin': resolve(__dirname, 'src/vite-plugin.ts'), }, - // the proper extensions will be added - // fileName: 'sentry-spotlight', }, rollupOptions: { external: [...dependencies, ...builtinModules.map(x => `node:${x}`)], diff --git a/packages/spotlight/vite.overlay.config.ts b/packages/spotlight/vite.overlay.config.ts index 9aea2133..8492a52a 100644 --- a/packages/spotlight/vite.overlay.config.ts +++ b/packages/spotlight/vite.overlay.config.ts @@ -1,4 +1,4 @@ -import { resolve } from 'path'; +import { resolve } from 'node:path'; import { defineConfig } from 'vite'; export default defineConfig({