Add API Server (Go/PocketBase), Web App (Go BFF + Vue), Fly App (Flutter/DJI MSDK), Adobe Plugin, and Docker/Docker AIO deployment configs. Design assets and build artifacts are gitignored. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
502 B
JavaScript
21 lines
502 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// The production build is written into ../server/dist so the Go BFF can embed
|
|
// it via //go:embed all:dist and serve it at the server root.
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
base: './',
|
|
build: {
|
|
outDir: '../server/dist',
|
|
emptyOutDir: true,
|
|
},
|
|
server: {
|
|
port: 5175,
|
|
proxy: {
|
|
// Dev-mode proxy to a locally running Web App BFF.
|
|
'/bff': 'http://localhost:8090',
|
|
},
|
|
},
|
|
})
|