thien-do / memos-pub

Markdown Blogging, Without Setup or Signup
https://memos.pub
116 stars 21 forks source link

docs(blog): Add custom domain guide #33

Open tuhuynh27 opened 2 years ago

tuhuynh27 commented 2 years ago

Memos.pub instantly makes a blog out of any public GitHub repo, with beautiful typography, MDX support, custom domain, and more.

Is there any guide to setting up a custom domain for now? I think it can be just simple as in Netlify, just point your domain CNAME record to some-blog.memos.pub.

Also, the 404 error happened on the org link:

https://keva-dev.memos.pub/blog

image

Not sure if this is a bug or an expected behavior

thien-do commented 2 years ago

Is there any guide to setting up a custom domain for now?

Not yet but this is of highest priority. I'm working on such guide. That said, the functionality itself should work fine

I think it can be just simple as in Netlify, just point your domain CNAME record to some-blog.memos.pub.

It is :D you just need to set your CNAME of "blog" to "cname.vercel-dns.com"

To be clear, that's the only step you need, but on our side we need other steps as well (all are done on our side, don't worry, just list them here in case you are curious):

And that's all. Thank you for trying this!

Also, the 404 error happened on the org link:

This won't be there in case of custom domain. However in case of using memos.pub subdomain, it is expected as it follows GitHub's behavior, which resolves to a same name repository if you don't provide a repository, that is when you are at root, your username. For example:

That being said this needs another guide too. Thank for highlighting this!