Demonstrating how to programmatically render the HTML out of a Node script.
This repo is the sample code to support this blog post:
https://www.peterbe.com/plog/programmatically-render-next-page
This repo is the outcome of:
- Running
npx create-next-app@latest --typescript
- Creating an additional page called
pages/aboutus.tsx
- A Node script called
scripts/url2html.mjs