Skip to content

Vercel + Obsidian Publish Fix

Bram Adams
Bram Adams
1 min read

Table of Contents

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
programming

Bram Adams

writer, programmer

Comments


Related Posts

Members Public

Issue 15: Houston, We Have a State Transition

Yes Houston, I tried jiggling the knob, that was the first thing I tried!

Issue 15: Houston, We Have a State Transition
Members Public

How GPT Helped Me Write an e2e App From Bed (yt Assets From transcript)

What challenges can GPT overcome when combined with human laziness?

How GPT Helped Me Write an e2e App From Bed (yt Assets From transcript)
Members Public

Writing OpenAPI with... OpenAI

How can developers quickly and easily convert TypeScript handler functions into OpenAPI specs?

Writing OpenAPI with... OpenAI