mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-14 07:26:43 +00:00
🈲
This commit is contained in:
@@ -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`
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user