From 74c7d2a0bad5f2f9cf735053543ee8afd4d121b2 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Fri, 14 Oct 2022 18:18:42 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=88=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/config.ts | 4 +++- package.json | 3 +++ readme.md | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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)