fix(web): preserve route state and cancel stale reads
This commit is contained in:
@@ -34,6 +34,11 @@ The web application splits every major route into a hashed lazy-loaded asset. An
|
||||
CURRENT_WEB=/opt/lingniu-vehicle-platform/current/web
|
||||
NEW_WEB=/opt/lingniu-vehicle-platform/releases/$PLATFORM_RELEASE/web
|
||||
|
||||
# Archives created on macOS must disable AppleDouble metadata. As a server-side
|
||||
# guard, remove any metadata files before recording the release manifest.
|
||||
COPYFILE_DISABLE=1 tar -C apps/web/dist -czf "/tmp/$PLATFORM_RELEASE-web.tar.gz" .
|
||||
find "$NEW_WEB" -type f -name '._*' -delete
|
||||
|
||||
# Record only this release's own build assets before adding compatibility files.
|
||||
find "$NEW_WEB/assets" -type f -printf '%P\n' | sort > "$NEW_WEB/.release-assets"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user