Версия 0.2.1. Исправлен vite.config.ts для того, чтобы работало в Docker.

This commit is contained in:
anibilag 2025-07-08 22:39:08 +03:00
parent b18e0d847e
commit a05a0af6c1
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "lawn-mowing-scheduler", "name": "lawn-mowing-scheduler",
"private": true, "private": true,
"version": "0.2.0", "version": "0.2.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "concurrently \"npm run server\" \"npm run client\"", "dev": "concurrently \"npm run server\" \"npm run client\"",

View File

@ -8,6 +8,7 @@ export default defineConfig({
exclude: ['lucide-react'], exclude: ['lucide-react'],
}, },
server: { server: {
host: true, // <-- добавлено: позволяет Vite принимать запросы извне (из Nginx)
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:3001', target: 'http://localhost:3001',