Configure hosting for gallery.mysuperlab.netcraze.pro and LAN access, enhance movement gallery textures with period-appropriate painted materials, dedupe influenced-by API responses via painting_influence_sources, and refresh several painting image files. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
457 B
TypeScript
20 lines
457 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: {
|
|
proxy: {
|
|
'/api': apiTarget,
|
|
'/images': apiTarget,
|
|
},
|
|
},
|
|
}
|
|
})
|