mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-24 16:32:45 -04:00
2
.gitignore
vendored
2
.gitignore
vendored
@@ -15,7 +15,7 @@ cli/turbo.exe
|
||||
storybook-static/
|
||||
.DS_Store
|
||||
cache
|
||||
.env
|
||||
.env*
|
||||
vendor/
|
||||
data
|
||||
node_modules
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
"@sd/client": "workspace:*",
|
||||
"@sd/interface": "workspace:*",
|
||||
"@sd/ui": "workspace:*",
|
||||
"@sentry/vite-plugin": "^2.7.0",
|
||||
"@tanstack/react-query": "^4.24.4",
|
||||
"@tauri-apps/api": "1.3.0",
|
||||
"comlink": "^4.4.1",
|
||||
@@ -38,8 +39,8 @@
|
||||
"semver": "^7.5.0",
|
||||
"typescript": "^5.0.4",
|
||||
"vite": "^4.0.4",
|
||||
"vite-plugin-html": "^3.2.0",
|
||||
"vite-plugin-svgr": "^2.2.1",
|
||||
"vite-tsconfig-paths": "^4.0.3",
|
||||
"vite-plugin-html": "^3.2.0"
|
||||
"vite-tsconfig-paths": "^4.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Plugin, mergeConfig } from 'vite';
|
||||
import { sentryVitePlugin } from '@sentry/vite-plugin';
|
||||
import { Plugin, defineConfig, loadEnv, mergeConfig } from 'vite';
|
||||
import baseConfig from '../../packages/config/vite';
|
||||
|
||||
const devtoolsPlugin: Plugin = {
|
||||
@@ -16,9 +17,20 @@ const devtoolsPlugin: Plugin = {
|
||||
}
|
||||
};
|
||||
|
||||
export default mergeConfig(baseConfig, {
|
||||
server: {
|
||||
port: 8001
|
||||
},
|
||||
plugins: [devtoolsPlugin]
|
||||
export default defineConfig(({ mode }) => {
|
||||
process.env = { ...process.env, ...loadEnv(mode, process.cwd(), '') };
|
||||
|
||||
return mergeConfig(baseConfig, {
|
||||
server: {
|
||||
port: 8001
|
||||
},
|
||||
plugins: [
|
||||
devtoolsPlugin,
|
||||
sentryVitePlugin({
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
org: 'spacedriveapp',
|
||||
project: 'desktop'
|
||||
})
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
@@ -26,6 +26,7 @@ export default defineConfig({
|
||||
},
|
||||
root: 'src',
|
||||
build: {
|
||||
sourcemap: true,
|
||||
outDir: '../dist',
|
||||
assetsDir: '.'
|
||||
},
|
||||
|
||||
BIN
pnpm-lock.yaml
generated
BIN
pnpm-lock.yaml
generated
Binary file not shown.
Reference in New Issue
Block a user