Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
erin-doyle opened this issue Sep 7, 2020 · 2 comments
Open

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

erin-doyle opened this issue Sep 7, 2020 · 2 comments

Comments

@erin-doyle
Copy link

erin-doyle commented Sep 7, 2020

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
Copy link

Same problem here

@artoonie
Copy link

artoonie commented Feb 4, 2021

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: #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants