This commit is contained in:
Travis Fischer
2022-10-14 18:18:42 -04:00
parent a62a30a321
commit 74c7d2a0ba
3 changed files with 7 additions and 2 deletions

View File

@@ -125,7 +125,9 @@ export const redisNamespace: string | null = getEnv(
export const isServer = typeof window === 'undefined'
export const port = getEnv('PORT', '3000')
export const host = isDev ? `http://localhost:${port}` : `https://${domain}`
export const host = isDev
? `http://localhost:${port}`
: `https://${process.env.VERCEL_URL || domain}`
export const apiBaseUrl = `/api`

View File

@@ -6,6 +6,9 @@
"author": "Travis Fischer <travis@transitivebullsh.it>",
"repository": "transitive-bullshit/nextjs-notion-starter-kit",
"license": "MIT",
"engines": {
"node": ">=16"
},
"scripts": {
"dev": "next dev",
"build": "next build",

View File

@@ -40,7 +40,7 @@ It uses Notion as a CMS, [react-notion-x](https://github.com/NotionX/react-notio
**All config is defined in [site.config.ts](./site.config.ts).**
This project requires a recent version of Node.js (>= 14.17).
This project requires a recent version of Node.js (we recommend >= 16).
1. Fork / clone this repo
2. Change a few values in [site.config.ts](./site.config.ts)