Netlify-plugin-checklinks giving false positive error on .netlify/funtions

Hi, I was just trying the build plugin netlify-plugin-checklinks
My website deploys and works otherwise.

I’m not sure why the fetches fail, this is a modified version of stripe-subscriptions-netlify-identity of learn with jason!

I did find a similar thread Plugin "netlify-plugin-checklinks" failed │sw.js not found, but in this case it was a service worker, not a netlify function, annd it seems the op accepted to just give up and disable the plugin, I would like to keep using it and fix eithher my implementation or be able to ignore some lines?

>     2:39:01 PM: │ 5. onPostBuild command from netlify-plugin-checklinks │
>     2:39:01 PM: └───────────────────────────────────────────────────────┘
>     2:39:01 PM: ​
>     2:39:06 PM: .××.......
>     2:39:06 PM:   ✖ FAIL load _site/.netlify/functions/create-manage-link
>     2:39:06 PM:   | operator: load
>     2:39:06 PM:   | expected: 200 _site/.netlify/functions/create-manage-link
>     2:39:06 PM:   |   actual: ENOENT: no such file or directory, open '/opt/build/repo/_site/.netlify/functions/create-manage-link'
>     2:39:06 PM:   |       at: _site/index.html:292:16 (inlined JavaScript)
>     2:39:06 PM:   ✖ FAIL load _site/.netlify/functions/get-protected-content
>     2:39:06 PM:   | operator: load
>     2:39:06 PM:   | expected: 200 _site/.netlify/functions/get-protected-content
>     2:39:06 PM:   |   actual: ENOENT: no such file or directory, open '/opt/build/repo/_site/.netlify/functions/get-protected-content'
>     2:39:06 PM:   |       at: _site/index.html:322:14 (inlined JavaScript)
>     2:39:06 PM:   10 tests
>     2:39:06 PM:    8 passed
>     2:39:06 PM:    2 failed

My fetch:

      b2.addEventListener('click', () => {
        // TODO handle subscription management
        fetch('/.netlify/functions/create-manage-link', {
          method: 'POST',
          headers: {
            Authorization: `Bearer ${user.token.access_token}`,
          },
        })
          .then((res) => res.json())
          .then((link) => {
            window.location.href = link;
          })
          .catch((err) => console.error(err));
      });

Is there something like @ts-ignore I could apply here? Shhould I rename my fetch functions to have my absolute production domain so cchecklinks doesn’t look for that route on my repo which is not in it!

Basically, it looks for .netlify inside my _site build folder, which isn’t there on my codebase, but it is in a prod deployment

Hi @agusti,

Thanks for reaching out.
This plugin has been created and is maintained by a community user, so I would suggest creating an issue to its repository, since the author might be able to fix this problem directly.
In the meantime, I am wondering whether the skipPatterns plugin input might be a workaround?