2023-01-29 • Guide
Before I get into how you can create something like this yourself, let me explain why I decided to do this.
Notion offers a ton of great writing tools. Especially after the launch of Notion AI. I can now be lazy and have an AI help me write blog posts. Another upside is that Notion is very convenient. If I find a cool thing I want to share, I am just an alt + tab, ctrl + t, notion ⏎ away from sharing it with the world.
I’ll break this down into a few steps. First, you need to setup the Notion database.
To start, create a Notion account and on your notion dashboard, hit the + next to Private on the left navbar. Name it anything you want, and select Table as the type.
Then hit + New database on the Select data source popup.
Now, create the following columns:
Lastly, we need to get the database ID so the site can properly pull the data.
Right click the page you just made on the left navbar and hit Copy Link. The database ID is everything after the last / and before the ?v=bla bla bla stuff.
So for example, https://www.notion.so/derock/fdc7a169f6b74de7bf092b685e32552f?v=c94c863f767c40fa9728fadf37d0dfd4 the ID is fdc7a169f6b74de7bf092b685e32552f
On the left navbar, hit Settings & members, go over to Connections, and click the Develop or manage integrations link.
Hit New integration and name it whatever. Give it only the Read content permission. Now copy the Internal Integration Token and save it somewhere safe.
Lastly, we need to give the integration access to the blog database. Go back to your blog database, hit the three little dots on the top right, and under Connections, add your integration.
Click this cool link and log into or create a Vercel account. Make sure the Framework Preset is set to SolidStart.
Under Environment Variables set the following:
and then hit deploy! 🚀
You’re done! You’ve just deployed an amazing blog site.