diff options
Diffstat (limited to 'vite.config.ts')
| -rw-r--r-- | vite.config.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..757a0af --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,18 @@ +import react from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [react()], + root: ".", + build: { + outDir: "dist/client", + }, + server: { + proxy: { + "/api": { + target: "http://localhost:3000", + changeOrigin: true, + }, + }, + }, +}); |
