All checks were successful
gitea/minesweeper-frontend/pipeline/head This commit looks good
24 lines
501 B
JavaScript
24 lines
501 B
JavaScript
import { defineConfig, loadEnv } from "vite";
|
|
import process from "process";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig(({ command, mode }) => {
|
|
const env = loadEnv(mode, process.cwd());
|
|
return {
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3000,
|
|
host: true,
|
|
watch: {
|
|
usePolling: true,
|
|
},
|
|
esbuild: {
|
|
target: "esnext",
|
|
platform: "linux",
|
|
},
|
|
},
|
|
define: {
|
|
VITE_SOCKET_URL: JSON.stringify(env.VITE_SOCKET_URL),
|
|
},
|
|
};
|
|
}); |