This repository holds a blog with bits of useful information.
-
Configuring the website by editing
site.config.ts
-
Removing Redis from
package.json
'soverrides
section as it crashed the packages installation"overrides": { "cacheable-request": { "keyv": "npm:@keyvhq/core@^1.6.6" } }
-
Changing the year present in copyrights
-
Removing the theme toggle button from
components/Footer.tsx
-
Disabling Next's image optimization feature by setting
images.unoptimized
totrue
innext.config.js
-
Setting
fallback
tofalse
inpages/[pageId].tsx
-
Removing all occurances of the
GitHubShareButton
component and its classes -
Manual build and deployment to Cloudflare as the convertion from Notion to HTML may generate
uglyinappropriate content
- Install Node.js.
- Install the dependencies:
npm install
.
- Run a development server:
npm run dev
.
- Build the Next.js static pages, which doesn't depends anymore of Notion's API:
npm run build-export
- Serve the pages:
npm run start:dev
- Build the Next.js server, which doesn't depends anymore of Notion's API:
npm run build
. - Checking the built website:
npm run start:prod
.
- Next.js Notion Starter Kit
- Notion as a content management system