import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { fileURLToPath } from 'node:url' // The frontend is served by the Go binary at / (embedded dist), and talks to // the same origin via /api/manager/*. export default defineConfig({ plugins: [vue()], base: '/', resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) }, }, css: { preprocessorOptions: { scss: { additionalData: `@use "@/styles/variables.scss" as *;`, }, }, }, build: { outDir: 'dist', }, server: { proxy: { '/api': 'http://127.0.0.1:17650', }, }, })