Версия 0.2.1. Исправлен vite.config.ts для того, чтобы работало в Docker.
This commit is contained in:
parent
b18e0d847e
commit
a05a0af6c1
@ -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\"",
|
||||||
|
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user