@@ -5,29 +5,22 @@ import { qwikRouter } from '@qwik.dev/router/vite';
5
5
import { defineConfig , loadEnv } from 'vite' ;
6
6
import tsconfigPaths from 'vite-tsconfig-paths' ;
7
7
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' ,
23
21
} ,
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
+ } ,
33
26
} ) ;
0 commit comments