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.jsto load markdown posts from the Jekyll_postsdirectory. - Recreated
index.mdandabout.mdas React pages. - Created dynamic post pages using
next-mdx-remote. - Updated
README.mdwith 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
After building, start the server with npm start or deploy the .next output using any Node.js hosting provider.