Split viewer and simulation into separate apps
This commit is contained in:
18
apps/viewer/vite.config.ts
Normal file
18
apps/viewer/vite.config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
const root = new URL(".", import.meta.url).pathname;
|
||||
|
||||
export default defineConfig({
|
||||
root,
|
||||
server: {
|
||||
host: true,
|
||||
port: 5174,
|
||||
proxy: {
|
||||
"/api": "http://127.0.0.1:5079",
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: "../../dist/viewer",
|
||||
emptyOutDir: true,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user