27 lines
615 B
TypeScript
27 lines
615 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const rootDir = path.dirname(fileURLToPath(import.meta.url));
|
|
const proxyTarget = process.env.NIXMSG_PROXY_TARGET || "http://127.0.0.1:7443";
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(rootDir, "src"),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": proxyTarget,
|
|
"/healthz": proxyTarget,
|
|
},
|
|
},
|
|
test: {
|
|
environment: "happy-dom",
|
|
include: ["src/**/*.{spec,test}.ts"],
|
|
},
|
|
});
|