#domcar-applepay-vercel

1 messages · Page 1 of 1 (latest)

chilly oarBOT
twilit depot
#

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

austere gazelle
#

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

twilit depot
#

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?

austere gazelle
#

ahh, yea thats half the problem with nextjs/vercel lol

twilit depot
#

what is you put a .well-known dir in your public?

#

is that what you tried?

austere gazelle
#

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)

austere gazelle
#

like this (but association spelled correctly, incorrect in the pic)

twilit depot
twilit depot
#

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"
austere gazelle
#

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

twilit depot
#

That curl request simulates the request apple makes

twilit depot
#

it needs to return the association file contents directly

austere gazelle
#

hmmm

twilit depot
#

Any luck so far?

chilly oarBOT
bright hedge
#

domcar-applepay-vercel

austere gazelle