This commit includes: - Django backend with multi-tenancy (django-tenants) - React + TypeScript frontend with Vite - Platform administration API with role-based access control - Authentication system with token-based auth - Quick login dev tools for testing different user roles - CORS and CSRF configuration for local development - Docker development environment setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
593 B
JavaScript
23 lines
593 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: '0.0.0.0', // Listen on all network interfaces
|
|
port: 5173,
|
|
hmr: {
|
|
host: 'lvh.me',
|
|
port: 5173,
|
|
},
|
|
// Add lvh.me and its subdomains to allowed hosts
|
|
// This is necessary for local development with subdomains
|
|
// https://vitejs.dev/config/server-options.html#server-allowedhosts
|
|
allowedHosts: [
|
|
'.lvh.me', // Allow all subdomains of lvh.me
|
|
'lvh.me',
|
|
],
|
|
},
|
|
})
|