利用 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
,base64
type.
- Private mode : Notion API token based authorization.
- Count visits.
入门
准备工作
- Set
NEXT_PUBLIC_NOTION_DATABASE_URL
to your database URL,NOTION_API_TOKEN
to your token obtained in step 3.
Deploy on Vercel
环境变量
NEXT_PUBLIC_NOTION_DATABASE_URL
Required Notion database page URL.
NOTION_API_TOKEN
Required Notion API Key.
Show advanced options
USE_TOKEN_AUTH
If set to
true
, visitors without tokens cannot submit new URLs.Default
false
MAXIMUM_ZERO_WIDTH_SHORTEN_LENGTH
Maximum length of URL path with zero width shorten.
Default
8
MAXIMUM_BASE64_SHORTEN_LENGTH
Maximum length of URL path with base64 shorten.
Default
7
MAXIMUM_GENERATION_ATTEMPTS
Maximum number of times to retry when the generated URL path conflicts with the already registered URL path.
Default
5