POSTS / About THIS: Deploy with Hakuba
Last Talking: #2.
Finally I choose Hakuba as the blog engine for github discussion.
Vercel Deploy
Just follow the steps from the guideline you will get an error like No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings. Learn More: https://vercel.link/missing-public-directory
, then you should add a vercel.json
to the repository to override the default config of Vercel.
{
"outputDirectory": "build"
}
I also change the branch name to main as the default branch name in Vercel is master.
[!NOTE] After deploying you will get two repositories: one is created by vercel and the other is created by yourself with github discussions. This repository acts as the latter one.
Set Env Vars
List of vars I have set:
Add Domains
Reference: Vercel应用绑定自己的域名
I’ve got one domain so just add a CNAME resolution is OK.
- In Vercel Settings Dashboard: Add your domain.
- In Domain Consoles: Add CNAME resolutions.
Also I searched and got this page which tells about what @
, *
, etc. mean in resolution.
TODO
-
Currently the page only has one category, finding out how to show multiple categories or use section to manage categories is needed.See #24 for detailed info.