netlify-labs / netlify-plugin-a11y

Build a more accessible web! Run your critical pages through pa11y and fail build if accessibility failures are found.
https://netlify-plugin-a11y.netlify.com/
93 stars 17 forks source link

Check Path is being treated like a URL not a file path #32

Open erin-doyle opened 4 years ago

erin-doyle commented 4 years ago

With the following netlify.toml file:

[[plugins]]
package = "netlify-plugin-a11y"

  [plugins.inputs]
  checkPaths = [
    '/index.html',
  ]

I'm receiving the following error: Error: net::ERR_NAME_NOT_RESOLVED at http://build/index.html

My publish directory is set to build in the Build settings. I have no idea why the path is being prepended with http://. At first I thought maybe checkPaths must be expecting URL values but after experimenting with that it just appends whatever values I supply to http://build/. Is there something I'm doing wrong to trigger this behavior?

willowell commented 3 years ago

Same problem here

artoonie commented 3 years ago

This seems to happen when you specify exact files. I have a PR here to fix, though I'm not sure if this causes issues for others: https://github.com/netlify-labs/netlify-plugin-a11y/pull/39