fix: track compiled RCL parallax JS for MapStaticAssets deployment
DeepDrftShared.Client's wwwroot/js/ was gitignored, so the TS-compiled parallax.js was absent at build-time manifest generation. MapStaticAssets serves _content/ exclusively from the build manifest, so the file was missing from the publish output — requests fell through to the Blazor HTML handler, producing a text/html MIME-type error in the browser. DeepDrftPublic audio JS is unaffected because UseStaticFiles() serves that startup project's physical wwwroot/ directly, bypassing the manifest. The RCL has no such bypass, so its compiled JS must be present at manifest-generation time, which requires tracking it in git.
This commit is contained in:
+4
-1
@@ -314,4 +314,7 @@ Database/Vaults/*
|
||||
**/wwwroot/js/*
|
||||
# ...except hand-authored client JS modules (not TS compile output).
|
||||
!DeepDrftPublic.Client/wwwroot/js/
|
||||
!DeepDrftPublic.Client/wwwroot/js/*.js
|
||||
!DeepDrftPublic.Client/wwwroot/js/*.js
|
||||
# RCL compiled JS must be committed — MapStaticAssets serves from build-time manifest;
|
||||
# gitignored TS output is absent when manifest is generated, so absent from publish output.
|
||||
!DeepDrftShared.Client/wwwroot/js/parallax/
|
||||
Reference in New Issue
Block a user