File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { sentrySvelteKit } from "@sentry/sveltekit" ;
22import tailwindcss from '@tailwindcss/vite' ;
33import { sveltekit } from '@sveltejs/kit/vite' ;
4- import { defineConfig } from 'vite' ;
4+ import { defineConfig , loadEnv } from 'vite' ;
55
6- export default defineConfig ( {
7- plugins : [ sentrySvelteKit ( {
8- org : "micropyramid-fa" ,
9- project : "bottlecrm-app" ,
10- autoUploadSourceMaps : ! ! process . env . PUBLIC_SENTRY_DSN
11- } ) , tailwindcss ( ) , sveltekit ( ) ] ,
12- optimizeDeps : {
13- exclude : [ 'esm-env' ]
14- }
15- } ) ;
6+ export default defineConfig ( ( { mode } ) => {
7+ const env = loadEnv ( mode , process . cwd ( ) , '' ) ;
8+ return {
9+ plugins : [ sentrySvelteKit ( {
10+ org : "micropyramid-fa" ,
11+ project : "bottlecrm-app" ,
12+ sourceMapsUploadOptions : {
13+ authToken : env . SENTRY_AUTH_TOKEN
14+ } ,
15+ autoUploadSourceMaps : ! ! env . PUBLIC_SENTRY_DSN
16+ } ) , tailwindcss ( ) , sveltekit ( ) ] ,
17+ optimizeDeps : {
18+ exclude : [ 'esm-env' ]
19+ }
20+ } ;
21+ } ) ;
You can’t perform that action at this time.
0 commit comments