瀏覽代碼

🔧 chore(scripts): rename preview script to start

- change npm script from "preview" to "start" to follow standard naming conventions
- maintain same functionality with PORT=8080 and production environment configuration
yourname 4 月之前
父節點
當前提交
111e587d8c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -9,7 +9,7 @@
     "build:client": "vite build --outDir dist/client --manifest",
     "build:server": "vite build --ssr src/server/index.tsx --outDir dist/server",
     "build:api": "vite build --ssr src/server/api.ts --outDir dist/api",
-    "preview": "PORT=8080 cross-env NODE_ENV=production node server"
+    "start": "PORT=8080 cross-env NODE_ENV=production node server"
   },
   "dependencies": {
     "@ant-design/icons": "^6.0.0",