mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
22 lines
507 B
TypeScript
22 lines
507 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:3000",
|
|
// target: "https://res.nyne.dev",
|
|
changeOrigin: true,
|
|
},
|
|
"https://www.moyu.moe": {
|
|
target: "https://www.moyu.moe",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|