Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

iosifache/nextjs-notion-blog

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Blog ๐ŸŒ

Description ๐Ÿ–ผ๏ธ

This repository holds a blog with bits of useful information.

Differences from Parent Repository

  • Configuring the website by editing site.config.ts

  • Removing Redis from package.json's overrides section as it crashed the package's 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 to true in next.config.js

  • Setting fallback to false in pages/[pageId].tsx

  • Removing all occurrences of the GitHubShareButton component and its classes

  • Manually building and deploying to Cloudflare as the conversion from Notion to HTML may generate ugly inappropriate content

  • Updating the favicon

Setup ๐Ÿ”ง

  1. Install Node.js.
  2. Install the dependencies: npm install.

Usage ๐Ÿงฐ

Live Development Server

  1. Run a development server: npm run dev.

Static Development Server

  1. Build the Next.js static pages, which doesn't depend any more on Notion's API: npm run build-export.
  2. Serve the pages: npm run start:dev.

Production Server

  1. Build the Next.js server, which doesn't depend any more on Notion's API: npm run build.
  2. Checking the built website: npm run start:prod.

Resources ๐Ÿ“š

About

Retired Next.js + Notion personal website ๐ŸŒ

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • HTML 94.2%
  • TypeScript 4.7%
  • Other 1.1%