ffffng/frontend/vite.config.ts

29 lines
678 B
TypeScript
Raw Normal View History

2022-07-14 11:26:43 +02:00
import {fileURLToPath, URL} from "url";
2022-02-22 15:39:39 +01:00
2022-07-14 11:26:43 +02:00
import {defineConfig} from "vite";
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/
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/": {
target: "http://localhost:8080",
},
"/internal/api/": {
target: "http://localhost:8080",
},
},
},
});