mazzzystar / tinymind

Tinymind - Write and sync your blog & thoughts with GitHub
https://tinymind.me
MIT License
634 stars 47 forks source link

Deploy to vercel #3

Open Vincentqyw opened 1 month ago

Vincentqyw commented 1 month ago

Great project! How can I deploy this repository to Vercel, and what settings should be added?

mazzzystar commented 1 month ago

Hi, I'm not sure why you want to deploy to Vercel, because unlike many Github blog repos, this one doesn't need to be deployed to be used: you can check the how-it-works section.

If you're certain you want to deploy Tinymind yourself, you need to create a .env file with the following content:

GITHUB_ID= # your Github app id
GITHUB_SECRET= # your Github app secret
NEXTAUTH_SECRET= # random generate one
NEXTAUTH_URL=http:localhost:3000

Then you need to create an application in Github and paste the GITHUB_ID and GITHUB_SECRET. Then run:

npm i
npm run dev