Fix frontend vite not exposing port after dev script change

This commit is contained in:
ShootingStar91
2024-08-28 10:33:18 +03:00
parent d78181cce3
commit 5be3b299e1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ COPY package-lock.json ./
EXPOSE 5173
CMD ["npm", "run", "dev", "--", "--host"]
CMD ["npm", "run", "dev"]
+1 -1
View File
@@ -4,7 +4,7 @@
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "[ -d node_modules ] && npx vite || npm ci && npx vite",
"dev": "[ -d node_modules ] && npx vite --host || npm ci && npx vite --host",
"build": "vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"