Split PostgreSQL into gallery_dev and gallery_prod, add Docker/Gitea deploy tooling, SMB image sync, pgAdmin split script, dev:web on Keenetic :5173, and operator docs. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
583 B
TypeScript
22 lines
583 B
TypeScript
import path from 'node:path'
|
|
import { defineConfig, loadEnv } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
const env = loadEnv(mode, path.resolve(__dirname, '..'), '')
|
|
const apiTarget = `http://localhost:${env.PORT || '3001'}`
|
|
|
|
return {
|
|
plugins: [react()],
|
|
server: {
|
|
host: true,
|
|
allowedHosts: ['devgallery.mysuperlab.netcraze.pro', 'gallery.mysuperlab.netcraze.pro', 'localhost'],
|
|
proxy: {
|
|
'/api': apiTarget,
|
|
'/images': apiTarget,
|
|
},
|
|
},
|
|
}
|
|
})
|