chore(app): add lan dev script

This commit is contained in:
2026-06-24 12:05:27 +08:00
parent 6180a8a515
commit c280a3c1ea
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -4,6 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"dev:lan": "next dev -H 0.0.0.0 -p 3000",
"build": "next build", "build": "next build",
"build:deploy": "pnpm install && pnpm run build", "build:deploy": "pnpm install && pnpm run build",
"start": "sh -c 'BRANCH=$(git branch --show-current); PORT=${PORT:-}; if [ -z \"$PORT\" ]; then if [ \"$BRANCH\" = \"main\" ]; then PORT=9185; else PORT=9135; fi; fi; next start -p \"$PORT\"'", "start": "sh -c 'BRANCH=$(git branch --show-current); PORT=${PORT:-}; if [ -z \"$PORT\" ]; then if [ \"$BRANCH\" = \"main\" ]; then PORT=9185; else PORT=9135; fi; fi; next start -p \"$PORT\"'",
@@ -2,7 +2,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100dvh; min-height: 100dvh;
background: var(--color-page-background); background: #fcf3f4;
padding: 18 30px 10px; padding: 18 30px 10px;
} }