Skip to content

Commit 74c7d2a

Browse files
🈲
1 parent a62a30a commit 74c7d2a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

‎lib/config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ export const redisNamespace: string | null = getEnv(
125125
export const isServer = typeof window === 'undefined'
126126

127127
export const port = getEnv('PORT', '3000')
128-
export const host = isDev ? `http://localhost:${port}` : `https://${domain}`
128+
export const host = isDev
129+
? `http://localhost:${port}`
130+
: `https://${process.env.VERCEL_URL || domain}`
129131

130132
export const apiBaseUrl = `/api`
131133

‎package.json

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"author": "Travis Fischer <[email protected]>",
77
"repository": "transitive-bullshit/nextjs-notion-starter-kit",
88
"license": "MIT",
9+
"engines": {
10+
"node": ">=16"
11+
},
912
"scripts": {
1013
"dev": "next dev",
1114
"build": "next build",

‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ It uses Notion as a CMS, [react-notion-x](https://github.com/NotionX/react-notio
4040

4141
**All config is defined in [site.config.ts](./site.config.ts).**
4242

43-
This project requires a recent version of Node.js (>= 14.17).
43+
This project requires a recent version of Node.js (we recommend >= 16).
4444

4545
1. Fork / clone this repo
4646
2. Change a few values in [site.config.ts](./site.config.ts)

0 commit comments

Comments
 (0)