mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
``` git ls-files \*.js \*.go \ | xargs sed -i '1i // SPDX-FileCopyrightText: 2022 Free Mobile\n// SPDX-License-Identifier: AGPL-3.0-only\n' git ls-files \*.vue \ | xargs sed -i '1i <!-- SPDX-FileCopyrightText: 2022 Free Mobile -->\n<!-- SPDX-License-Identifier: AGPL-3.0-only -->\n' ```
38 lines
943 B
JavaScript
38 lines
943 B
JavaScript
// SPDX-FileCopyrightText: 2022 Free Mobile
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import { lezer } from "@lezer/generator/rollup";
|
|
import path from "path";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue(), lezer()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
"@data": path.resolve(__dirname, "./data"),
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "../data/frontend",
|
|
emptyOutDir: true,
|
|
chunkSizeWarningLimit: 2000,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:8080",
|
|
changeOrigin: true,
|
|
headers: {
|
|
"Remote-User": "alfred",
|
|
"Remote-Name": "Alfred Pennyworth",
|
|
"Remote-Email": "alfred@dccomics.example.com",
|
|
"X-Logout-URL": "https://en.wikipedia.org/wiki/Alfred_Pennyworth",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|