Skip to content
Playground(another site)

bynk.asset.invalid_at_path

Error An asset's at path is not a URL path naming one file, or lies under /_assets/ or /_bynk/, or is a file the platform reads as configuration.

at serves an asset at a fixed URL, for clients that ask for a file by name, such as /favicon.ico, so the path must be the URL of one file: it starts with /, does not end in /, and uses only letters, digits and ._~- between its slashes. It may not be under /_assets/ or /_bynk/, which Bynk uses itself, nor be /_headers, /_redirects or /.assetsignore, which the platform reads as configuration. Write the path of a single file.

Example

asset favicon = "assets/favicon.ico" at "/icons/" // ✗ a folder, not a file
asset favicon = "assets/favicon.ico" at "/favicon.ico" // ✓

In the Book

See also

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