Migration to Next.js
Migration to Next.js
This project now contains a Next.js application alongside the existing Jekyll site.
Steps Performed
- Created
nextjs/
with a basic Next.js configuration using the MDX plugin. - Added utilities in
lib/posts.js
to load markdown posts from the Jekyll_posts
directory. - Recreated
index.md
andabout.md
as React pages. - Created dynamic post pages using
next-mdx-remote
. - Updated
README.md
with build and deployment instructions.
Building
This environment cannot install npm packages, so the nextjs
project uses a
stub build script. Run:
cd nextjs
npm run build
When network access is available, run npm install
and update the scripts to
use the real Next.js CLI.
Deployment
Start the server with npm start
or deploy using any Node.js hosting provider.