spatial-office/packages/frontend/vite.config.js
Scott Scoble 03eaea3f2d build: fix Nix flake with correct npmDepsHash and working builds
- Copy working src/frontend code into packages/frontend/src
- Add vite.config.js and index.html to packages/frontend
- Add real backend WebSocket server source
- Switch flake from pnpm to npm builds
- Force-add npm lockfiles (gitignored) for Nix source inclusion
- Set correct npmDepsHash for both packages
2026-05-19 18:15:41 -07:00

22 lines
384 B
JavaScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
plugins: [react()],
root: '.',
base: '/',
server: {
port: 18790,
host: '0.0.0.0',
},
build: {
outDir: 'dist',
emptyOutDir: true,
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});