require-netlify-publish-relative-path
Require Netlify publish path values to be relative.
Targeted pattern scopeâ
publish = ...values innetlify.toml.
What this rule reportsâ
This rule reports absolute publish directory paths such as /dist.
Why this rule existsâ
Netlify build outputs are expected to be repository/base-directory relative. Absolute paths are fragile and often accidental.
â Incorrectâ
[build]
publish = "/dist"
â Correctâ
[build]
publish = "dist"
When not to use itâ
Disable this rule if your deployment workflow intentionally uses absolute publish paths and guarantees environment consistency externally.
Rule catalog ID: R093