21 lines
574 B
TypeScript
21 lines
574 B
TypeScript
import path from "path"
|
|
import tailwindcss from "@tailwindcss/vite"
|
|
import react from "@vitejs/plugin-react"
|
|
import { defineConfig } from "vite"
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: {
|
|
host: true, // Allow external connections
|
|
port: 5173,
|
|
allowedHosts: ['dockervm', 'localhost', '127.0.0.1'], // Add your specific hosts
|
|
// Or use this for development (less secure but simpler):
|
|
// host: '0.0.0.0'
|
|
}
|
|
}) |