Skip to content

Vercel + Obsidian Publish Fix

It seems that the user's vercel is forcing the link to be "www.bramadams.dev" while they configured Obsidian Publish to be located at "bramadams.dev". They should either have their vercel redirect www to non-www or have Obsidian Publish's custom domain setting to be <www.bramadams.dev.>
Does that make sense? Can you try reconfiguring the www prefix and see if it solves the problem?

Fix:

vercel.json (in my blogs website):

{

"rewrites": [

{

"source": "/zettelkasten/",

"destination": "https://publish.obsidian.md/serve?url=www.bramadams.dev/zettelkasten"

},

{

"source": "/zettelkasten/:path*",

"destination": "https://publish.obsidian.md/serve?url=www.bramadams.dev/zettelkasten/:path*"

}

]

}

Obsidian Publish Custom Domain Settings: www.bramadams.dev/zettelkasten

https://bram-adams.ghost.io/content/images/2023/01/custom-domain-publish.png
custom domain publish.png

Comments