Files
Showy/react_frontend/vite.config.ts
T
X4Lo e9bc8886d4 Minor changes
- Updated frontend credit type
- Updated sorting of entry credits in `getEntryById()`
2026-04-23 22:23:10 +01:00

26 lines
610 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 4200,
proxy: {
'/api': {
target: 'http://showyback.coolguy.space',
// target: 'http://localhost:4000',
changeOrigin: true,
},
},
allowedHosts: ['localhost', 'showyback.coolguy.space', 'showy.coolguy.space'],
},
})