Add Docker support and update Vite config for container dev
- Add Dockerfile for Node-based Vite dev server setup - Add empty docker-compose.yml as placeholder - Set Vite to listen on 0.0.0.0 and strict port 5173 in config
This commit is contained in:
@@ -3,5 +3,10 @@ import react from '@vitejs/plugin-react'
|
||||
import tailwind from '@tailwindcss/vite'
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
host: '0.0.0.0', // or 'my.local.dev'
|
||||
port: 5173,
|
||||
strictPort: true
|
||||
},
|
||||
plugins: [react(), tailwind()],
|
||||
})
|
||||
Reference in New Issue
Block a user