Files
tkmind_go/ui-v2/vite.config.ts
T
Zane f3e586e724 Goose v2 base frontend (#2374)
Co-authored-by: Alex Hancock <alexhancock@block.xyz>
2025-04-28 10:20:00 -04:00

29 lines
620 B
TypeScript

import path from 'path';
import { fileURLToPath } from 'url';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@shared': path.resolve(__dirname, './shared'),
'@platform': path.resolve(__dirname, './src/services/platform/web'),
},
},
define: {
'process.env.IS_ELECTRON': JSON.stringify(false),
},
build: {
outDir: 'dist/web',
emptyOutDir: true,
},
server: {
port: 3000,
strictPort: true,
},
});