利用 Notion 数据库免费搭建个人短链接服务
date
Sep 1, 2024
slug
example-029
status
Published
tags
notion
工具
summary
如果你熟悉 Notion,部署过 NotionNext,那么你可以在 5 分钟内部署完本项目。
type
Post
网址
category
技术分享
Notion URL Shortener
Uses Notion database as personal URL shortener.
项目截图

特征
- Get your personal URL shortener with just a Notion.
- Support
custom,zero width,base64type.
- Private mode : Notion API token based authorization.
- Count visits.
入门
准备工作
- Set
NEXT_PUBLIC_NOTION_DATABASE_URLto your database URL,NOTION_API_TOKENto your token obtained in step 3.
Deploy on Vercel
环境变量
NEXT_PUBLIC_NOTION_DATABASE_URLRequired Notion database page URL.
NOTION_API_TOKENRequired Notion API Key.
Show advanced options
USE_TOKEN_AUTHIf set to
true, visitors without tokens cannot submit new URLs.Default
falseMAXIMUM_ZERO_WIDTH_SHORTEN_LENGTHMaximum length of URL path with zero width shorten.
Default
8MAXIMUM_BASE64_SHORTEN_LENGTHMaximum length of URL path with base64 shorten.
Default
7MAXIMUM_GENERATION_ATTEMPTSMaximum number of times to retry when the generated URL path conflicts with the already registered URL path.
Default
5