Skip to content
Playground(another site)

bynk.asset.path_conflict

Error Two different asset files would be served at one fixed path by the same Worker.

A fixed asset path names one file, and a Worker serves one file at it, so two assets cannot both claim /legal.txt. One path cannot be a folder of another either, as /logo and /logo/icon.png would be: a name cannot be both a file and a directory. Give each asset its own path. Two assets for the same file at the same path are no conflict. A route at an asset's path is bynk.asset.shadows_route.

Example

asset terms = "assets/a.txt" at "/legal.txt"
asset privacy = "assets/b.txt" at "/legal.txt" // ✗ a second file at `/legal.txt`
asset terms = "assets/a.txt" at "/terms.txt"
asset privacy = "assets/b.txt" at "/privacy.txt" // ✓

In the Book

See also

  • Every code in its category, Static assets, on the diagnostic index.
  • bynk explain bynk.asset.path_conflict shows the same from the installed toolchain, without a network.