@lark-apaas/coding-template-nestjs-react-fullstack 0.1.27-alpha.20260824095517 → 0.1.27-alpha.20260824122418
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -86,11 +86,9 @@ mkdir -p "$OUT_DIR/dist/client"
|
|
|
86
86
|
# 拷贝 HTML
|
|
87
87
|
cp "$ROOT_DIR/dist/client/"*.html "$OUT_DIR/dist/client/" || true
|
|
88
88
|
|
|
89
|
-
#
|
|
90
|
-
# (修 public 线上 404:同源 fetch('/x') / resolveAppUrl('/x'))。运行时 cwd=OUT_DIR,读 process.cwd()/public。
|
|
89
|
+
# public 随 views 一起进 dist/client(server setBaseViewsDir + nestjs-core 中间件同源 serve)
|
|
91
90
|
if [ -d "$ROOT_DIR/client/public" ]; then
|
|
92
|
-
|
|
93
|
-
cp -R "$ROOT_DIR/client/public/." "$OUT_DIR/public/"
|
|
91
|
+
cp -R "$ROOT_DIR/client/public/." "$OUT_DIR/dist/client/"
|
|
94
92
|
fi
|
|
95
93
|
|
|
96
94
|
# 拷贝 run.sh 文件
|