diff --git a/lib/config.ts b/lib/config.ts index eb22c90..32a1b06 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -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` diff --git a/package.json b/package.json index d960d29..bb5618b 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "author": "Travis Fischer ", "repository": "transitive-bullshit/nextjs-notion-starter-kit", "license": "MIT", + "engines": { + "node": ">=16" + }, "scripts": { "dev": "next dev", "build": "next build", diff --git a/readme.md b/readme.md index 9d6e300..da8741e 100644 --- a/readme.md +++ b/readme.md @@ -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)