ffffng/frontend/vite.config.ts
2022-08-23 17:17:51 +02:00

34 lines
924 B
TypeScript

import {fileURLToPath, URL} from "url";
import {defineConfig} from "vite";
import basicSsl from "@vitejs/plugin-basic-ssl";
import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/
// noinspection JSUnusedGlobalSymbols
export default defineConfig({
plugins: [basicSsl(), vue()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
https: true,
port: 3000,
strictPort: true,
proxy: {
"/api/": {
target: "http://localhost:8080",
// target: "https://formular.hamburg.freifunk.net",
changeOrigin: true,
},
"/internal/api/": {
target: "http://localhost:8080",
// target: "https://formular.hamburg.freifunk.net",
changeOrigin: true,
},
},
},
});