Initial Setup for Nile
This commit is contained in:
commit
ca9280f324
36 changed files with 2668 additions and 0 deletions
24
vite.config.js
Normal file
24
vite.config.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import path from "node:path";
|
||||
export default () => {
|
||||
return defineConfig({
|
||||
host: "0.0.0.0",
|
||||
port: process.env.VITE_DEV_PORT ?? 5173,
|
||||
plugins: [react()],
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
hmr: {
|
||||
protocol: process.env.VITE_DEV_PROTOCOL ?? "ws",
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: "./dist",
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve("./src"),
|
||||
},
|
||||
},
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue