fix: add serve for production deployment

This commit is contained in:
dwindown
2025-10-22 15:36:32 +07:00
parent fb9c944366
commit 7d0a3e2a63

View File

@@ -45,6 +45,7 @@
"react-snap": "^1.23.0", "react-snap": "^1.23.0",
"reactflow": "^11.11.4", "reactflow": "^11.11.4",
"serialize-javascript": "^6.0.0", "serialize-javascript": "^6.0.0",
"serve": "^14.2.4",
"turndown": "^7.2.1", "turndown": "^7.2.1",
"web-vitals": "^2.1.4" "web-vitals": "^2.1.4"
}, },
@@ -56,6 +57,7 @@
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
"start:prod": "serve -s build -l 3000",
"build": "react-scripts build && react-snap", "build": "react-scripts build && react-snap",
"build:no-snap": "react-scripts build", "build:no-snap": "react-scripts build",
"test": "react-scripts test", "test": "react-scripts test",