bynk.asset.outside_assets_dir
Error An asset path does not name a file in the project's assets/ folder.
An asset is served to anyone who asks, without the Worker running, so it may come only from the project's assets/ folder. If any path were allowed, a declaration could publish .env or a source file just by naming it. Move or copy the file into assets/ and name it there. A path that is absolute or contains .. is bynk.asset.unsafe_path instead.
Example
asset style = "styles/board.css" // ✗ not in the assets/ folderasset style = "assets/board.css" // ✓In the Book
See also
- Every code in its category, Static assets, on the diagnostic index.
bynk explain bynk.asset.outside_assets_dirshows the same from the installed toolchain, without a network.