This commit is contained in:
sbps-test user
2023-11-05 14:44:21 +03:00
parent 0c5b455404
commit de0452eb71
6 changed files with 6 additions and 7 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ __pycache__/
/postgres /postgres
tags tags
package-lock.json package-lock.json
front/build/

View File

@@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View File

@@ -29,7 +29,7 @@ services:
working_dir: /code working_dir: /code
volumes: volumes:
- ./front:/code - ./front:/code
command: bash -c "npm install && npm run dev -- --host 0.0.0.0" command: bash -c "npm install && npm run build && BODY_SIZE_LIMIT=200000000 PORT=5173 node build"
ports: ports:
- "127.0.0.1:5173:5173" - "127.0.0.1:5173:5173"
networks: networks:

View File

@@ -8,7 +8,7 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0", "@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/kit": "^1.5.0", "@sveltejs/kit": "^1.5.0",
"svelte": "^3.54.0", "svelte": "^3.54.0",
"vite": "^4.0.0" "vite": "^4.0.0"

View File

@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto'; import adapter from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {

View File

@@ -19,6 +19,7 @@ server {
location / { location / {
access_log off; access_log off;
client_max_body_size 200M;
include proxy_params; include proxy_params;
proxy_send_timeout 600; proxy_send_timeout 600;
@@ -26,3 +27,4 @@ server {
proxy_pass http://127.0.0.1:5173; proxy_pass http://127.0.0.1:5173;
} }
} }