cd52a2f82f
Browser-based photo catalog with an optional team server (SQLite + LibRaw). Local database, uploaded photos, build output and dependencies are gitignored. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
16 lines
368 B
TypeScript
16 lines
368 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
/** Dev server proxies /api to the Luminary server on its default port. */
|
|
const API_TARGET = 'http://127.0.0.1:8787';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': { target: API_TARGET, changeOrigin: false },
|
|
},
|
|
},
|
|
});
|