Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #53701 [AssetMapper] Fix exception if assets directory is missing…
… in production (rynhndrcksn) This PR was merged into the 6.4 branch. Discussion ---------- [AssetMapper] Fix exception if assets directory is missing in production | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #53669 | License | MIT During deployment some people will compile their assets with Asset Mapper then delete the root `assets/` directory. This causes Asset Mapper to throw an exception, and a common work around people mentioned in the issue is to create an empty `assets/` directory. This PR makes it so the exception is only thrown while `kernel.debug` is equal to true, letting developers know locally that there's an issue, but allowing people to safely do this in their `production` environments. Commits ------- 962a044 Fix exception if assets dir is missing in prod
- Loading branch information