Skip to content
Source
Sign inSign up
samwillis/one-million-boxes
Open History to see the last commit

vite.config.ts

23 lines480 Bytes

1import react from "@vitejs/plugin-react"
2import { defineConfig } from "vite"
3​
4export default defineConfig({
5 plugins: [react()],
6 server: {
7 host: "127.0.0.1",
8 port: 5173,
9 strictPort: true,
10 fs: {
11 deny: [
12 ".env",
13 ".env.*",
14 "*.{crt,pem}",
15 "**/.git/**",
16 "**/.local/**",
17 "**/server/**",
18 "**/scripts/**",
19 ],
20 },
21 proxy: { "/api": `http://127.0.0.1:${process.env.API_PORT ?? "3001"}` },
22 },
23})