Skip to content

peterbe/programmatically-render-next-page

Repository files navigation

Programmatically render a Next page without a server in Node

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

Introduction

This repo is the outcome of:

  1. Running npx create-next-app@latest --typescript
  2. Creating an additional page called pages/aboutus.tsx
  3. A Node script called scripts/url2html.mjs

About

Programmatically render a Next page without a server in Node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published