Copying here the answer I gave on Discord since this post gets resurfaced:
It depends on the type of builder (Vite, Webpack, etc.) you are using in your dapp. You might find this answer about the localcation of
ic-assets.json
there maybe?
https://forum.dfinity.org/t/custom-domain-where-should-the-well-known-directory-be/20293/2?u=peterparker
…
Yes because this is incorrect, once again, the outcome should bedist/.well-known
and nothing else.In vite commonly static files are located in a
public
folder, if you’ve got such a folder try to placepublic/.well-known
there as source folder.
public
is sometimes also calledstatic
Likewise for the
.ic-assets.json
, it should fine place inpublic/.ic-assets.json
Anyway try until you get those files bundled to your
dist/
folder.
Hope that helps.
Otherwise, I found this in the documentation (see step 2.): https://internetcomputer.org/docs/current/developer-docs/web-apps/custom-domains/using-custom-domains#step-2-create-a-file-named-ic-domains-in-your-canister-under-the-well-known-directory-containing-the-custom-domain