#domcar-applepay-vercel
1 messages · Page 1 of 1 (latest)
I think the issue here is that the check for this does not follow redirects
You need to have a non-redirect handler for the /.well-known/... path
ive tried serving /.well-known/apple-developer-merchantid-domain-association directly from my /public folder, but i get the same error
so yea im not sure what to do, since this redirect remedy was the only other solution that i could think of
I'm not familiar enough with vercel/next routing to know how this needs to be set up
How are your routes defined more generally?
ahh, yea thats half the problem with nextjs/vercel lol
static/dynamic pages are served through src/app/ each directory within there is a route
but assets are in /public outside of src/app (see first pic)
correct
like this (but association spelled correctly, incorrect in the pic)
this causes a 404 error
Hmm alright, i'm at a bit of a loss then
I still get a 308 redirect from the url:
curl -i https://plzreply.com/.well-known/apple-developer-merchantid-domain-association -H ’Accept;’ -H ’Accept:’ -H "Via: https/1.1 usatl4-edge-bx-014.ts.apple.com[11FD071B] (ApacheTrafficServer/6.1.2)" -H "User-Agent: oslopartner Client 1.0" -H "Accept-Encoding: gzip"
yea all good, i do appreciate the github link, best shot so far. im guessing nextjs 14 has changed this since the solution was from 2020
That curl request simulates the request apple makes
ohw what
it needs to return the association file contents directly
hmmm
Any luck so far?
domcar-applepay-vercel
nope, tried out the other solutions on that page, but still getting 404s or 308