mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Fix frontend vite not exposing port after dev script change
This commit is contained in:
@@ -10,4 +10,4 @@ COPY package-lock.json ./
|
||||
|
||||
EXPOSE 5173
|
||||
|
||||
CMD ["npm", "run", "dev", "--", "--host"]
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user