Skip to content

Commit 5a00c0b

Browse files
committed
fix(insights): vite 6 config
1 parent fa03a6c commit 5a00c0b

File tree

1 file changed

+17
-24
lines changed

1 file changed

+17
-24
lines changed

packages/insights/vite.config.ts

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,22 @@ import { qwikRouter } from '@qwik.dev/router/vite';
55
import { defineConfig, loadEnv } from 'vite';
66
import tsconfigPaths from 'vite-tsconfig-paths';
77

8-
export default defineConfig(async () => {
9-
return {
10-
plugins: [
11-
macroPlugin({ preset: 'pandacss' }),
12-
qwikRouter(),
13-
qwikVite({
14-
experimental: ['insights'],
15-
}),
16-
tsconfigPaths({ projects: ['.'] }),
17-
qwikInsights({ publicApiKey: loadEnv('', '.', '').PUBLIC_QWIK_INSIGHTS_KEY }),
18-
],
19-
dev: {
20-
headers: {
21-
'Cache-Control': 'public, max-age=0',
22-
},
8+
export default defineConfig({
9+
plugins: [
10+
macroPlugin({ preset: 'pandacss' }),
11+
qwikRouter(),
12+
qwikVite({
13+
experimental: ['insights'],
14+
}),
15+
tsconfigPaths({ projects: ['.'] }),
16+
qwikInsights({ publicApiKey: loadEnv('', '.', '').PUBLIC_QWIK_INSIGHTS_KEY }),
17+
],
18+
preview: {
19+
headers: {
20+
'Cache-Control': 'public, max-age=600',
2321
},
24-
preview: {
25-
headers: {
26-
'Cache-Control': 'public, max-age=600',
27-
},
28-
},
29-
optimizeDeps: {
30-
include: ['@auth/core'],
31-
},
32-
};
22+
},
23+
optimizeDeps: {
24+
include: ['@auth/core'],
25+
},
3326
});

0 commit comments

Comments
 (0)