> ## Content Index
> Fetch the complete content index at: https://www.bramadams.dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# Vercel + Obsidian Publish Fix
- URL: https://www.bramadams.dev/202301041516/
- Published: 2023-01-28T09:23:31.000Z
- Updated: 2023-01-28T09:23:56.000Z
- Author: Bram Adams
- Tags: programming

> 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):

```js
{

"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](https://storage.ghost.io/c/0c/cc/0ccc9a8d-054a-4056-b11e-e1bfbbb66387/content/images/2023/01/custom-domain-publish.png)

custom domain publish.png