Add Well Known Folder to nextjs
Answered
stcode posted this in #help-forum
stcodeOP
Hi guys I need to add /.well-known/some.txt to my NextJS apps how do i do this?
7 Replies
Huh? Just open your file explorer and create a folder... Or even better, do it from your code editor since they can do that too.
If you instead need a text file under
yourdomain.com/.well-known/some.txt you can add that to the /public directory.American Crocodile
add them to public, yes. it worked for my case
Answer
stcodeOP
thank you @American Crocodile @not-milo.tsx I was a bit confuse before why it doesn’t seem to work because I was thinking if the cache affecting prod
The context before that I am currently trying to get my app to get Apple Pay to work and now they want to get domain verification
Got it. Then yeah, just add it to the public directory and you're good to go. As for caching, you won't have any issues with that.