forked from CaliCastle/cali.so
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbbf161
commit 8461b4f
Showing
6 changed files
with
69 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
CLERK_SECRET_KEY="" | ||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="pk_" | ||
|
||
# 数据库信息,评论系统必需 | ||
# 数据库信息,评论/留言墙功能必需 | ||
DATABASE_URL="" | ||
|
||
# Sanity CMS 必需 | ||
|
@@ -13,11 +13,12 @@ NEXT_PUBLIC_SANITY_USE_CDN="false" | |
# Email 通知必需 | ||
RESEND_API_KEY="" | ||
SITE_NOTIFICATION_EMAIL_TO="[email protected]" | ||
NEXT_PUBLIC_SITE_EMAIL_FROM="[email protected]" | ||
NEXT_PUBLIC_SITE_URL="https://example.com" | ||
|
||
# Upstash Redis 必需 | ||
UPSTASH_REDIS_REST_TOKEN="" | ||
UPSTASH_REDIS_REST_URL="https://example.upstash.io" | ||
|
||
# Vercel 必需 | ||
VERCEL_ENV="development" | ||
EDGE_CONFIG="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { env } from '~/env.mjs' | ||
|
||
export const emailConfig = { | ||
from: '[email protected]', | ||
from: env.NEXT_PUBLIC_SITE_EMAIL_FROM, | ||
baseUrl: | ||
process.env.VERCEL_ENV === 'production' | ||
? `https://cali.so` | ||
env.VERCEL_ENV === 'production' | ||
? env.NEXT_PUBLIC_SITE_URL | ||
: 'http://localhost:3000', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[ | ||
{ | ||
"source": "/twitter", | ||
"destination": "https://x.com/thecalicastle", | ||
"permanent": true | ||
}, | ||
{ | ||
"source": "/x", | ||
"destination": "https://x.com/thecalicastle", | ||
"permanent": true | ||
}, | ||
{ | ||
"source": "/youtube", | ||
"destination": "https://youtube.com/@calicastle", | ||
"permanent": true | ||
}, | ||
{ | ||
"source": "/tg", | ||
"destination": "https://t.me/cali_so", | ||
"permanent": true | ||
}, | ||
{ | ||
"source": "/linkedin", | ||
"destination": "https://www.linkedin.com/in/calicastle/", | ||
"permanent": true | ||
}, | ||
{ | ||
"source": "/github", | ||
"destination": "https://github.com/CaliCastle", | ||
"permanent": true | ||
}, | ||
{ | ||
"source": "/bilibili", | ||
"destination": "https://space.bilibili.com/8350251", | ||
"permanent": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters