feat: add templates/games support with subpath routing and Docker build integration
This commit is contained in:
21
games/vite.config.js
Normal file
21
games/vite.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
|
||||
export default defineConfig(({ mode }) => ({
|
||||
base: "/games/",
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
port: 3000,
|
||||
allowedHosts: true,
|
||||
hmr: {
|
||||
overlay: false,
|
||||
timeout: 15000,
|
||||
},
|
||||
watch: {
|
||||
usePolling: true,
|
||||
interval: 500,
|
||||
binaryInterval: 500,
|
||||
},
|
||||
},
|
||||
plugins: [react()],
|
||||
}));
|
||||
Reference in New Issue
Block a user