diff --git a/vite.config.ts b/vite.config.ts index 5a33944..a1260b8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,18 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' +import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + root: 'client', + resolve: { + alias: { + '@': path.resolve(__dirname, './client/src'), + '@shared': path.resolve(__dirname, './shared') + } + }, + build: { + outDir: '../dist' + } })