feat(): Added ci restruct project and add dockerfile
This commit is contained in:
1 parent
5451970f02
commit
8aa8e04077
70 files changed
+81
-11
No files matched your search
@@ -0,0 +1,18 @@
|
||||
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', // Слушаем все интерфейсы
|
||||
port: 5173,
|
||||
allowedHosts: ['rustprogersteam.ru'],
|
||||
strictPort: true, // Запрещаем автоматический выбор порта
|
||||
hmr: {
|
||||
clientPort: 5173, // Важно для HMR в Docker
|
||||
},
|
||||
// Разрешаем CORS для внешних запросов
|
||||
cors: true
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user