qwik icon indicating copy to clipboard operation
qwik copied to clipboard

Netlify GitGateway 404

Open HeyITGuyFixIt opened this issue 2 years ago • 3 comments

I am using qwik with the Netlify adapter, and am trying to use Netlify's GitGateway feature with the NetlifyCMS. NetlifyCMS uses GitGateway through the route /.netlify/git/<git provider>. Because qwik captures all of the routes, this route gives a 404. Is there a way to tell qwik to ignore certain routes to allow Netlify to handle them instead?

HeyITGuyFixIt avatar Oct 31 '22 12:10 HeyITGuyFixIt

Hey @HeyITGuyFixIt. Are you using a dynamic route in your project? I'm wondering why the /.netlify/.../ route is being swallowed by Qwik City.

nnelgxorz avatar Nov 02 '22 16:11 nnelgxorz

@nnelgxorz Netlify sets up the dynamic route /.netlify/. I don't know what all it uses that route for other than Git Gateway. I just turn on a setting in Netlify to enable Git Gateway. All other routes are simply files in the routes folder or in the public folder.

HeyITGuyFixIt avatar Nov 02 '22 17:11 HeyITGuyFixIt

Got it. Seems like we could catch that in the Netlify adaptor/middleware. I'll try to take a look later if Adam doesn't get to it first.

nnelgxorz avatar Nov 02 '22 17:11 nnelgxorz