2022-08-23 19:08:39 +02:00
|
|
|
import { fileURLToPath, URL } from "url";
|
2022-02-22 15:39:39 +01:00
|
|
|
|
2022-08-23 19:08:39 +02:00
|
|
|
import { defineConfig } from "vite";
|
2022-07-14 11:26:43 +02:00
|
|
|
import basicSsl from "@vitejs/plugin-basic-ssl";
|
2022-02-22 15:39:39 +01:00
|
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
2022-07-14 11:29:31 +02:00
|
|
|
// noinspection JSUnusedGlobalSymbols
|
2022-02-22 15:39:39 +01:00
|
|
|
export default defineConfig({
|
2022-07-14 11:26:43 +02:00
|
|
|
plugins: [basicSsl(), vue()],
|
2022-02-22 15:39:39 +01:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
server: {
|
2022-07-14 11:26:43 +02:00
|
|
|
https: true,
|
|
|
|
port: 3000,
|
|
|
|
strictPort: true,
|
2022-02-22 15:39:39 +01:00
|
|
|
proxy: {
|
|
|
|
"/api/": {
|
2022-08-23 17:17:51 +02:00
|
|
|
target: "http://localhost:8080",
|
|
|
|
// target: "https://formular.hamburg.freifunk.net",
|
2022-07-14 11:29:31 +02:00
|
|
|
changeOrigin: true,
|
2022-02-22 15:39:39 +01:00
|
|
|
},
|
|
|
|
"/internal/api/": {
|
2022-08-23 17:17:51 +02:00
|
|
|
target: "http://localhost:8080",
|
|
|
|
// target: "https://formular.hamburg.freifunk.net",
|
2022-07-14 11:29:31 +02:00
|
|
|
changeOrigin: true,
|
2022-02-22 15:39:39 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|