You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/web/vite.config.ts

27 lines
577 B
TypeScript

3 years ago
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { VitePWA } from "vite-plugin-pwa";
3 years ago
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), VitePWA()],
3 years ago
server: {
host: "0.0.0.0",
port: 3000,
3 years ago
proxy: {
"/api": {
target: "http://localhost:8080/",
3 years ago
changeOrigin: true,
},
"/o/": {
target: "http://localhost:8080/",
changeOrigin: true,
},
"/h/": {
target: "http://localhost:8080/",
changeOrigin: true,
},
3 years ago
},
},
});