Next.js + Html
Import html files in Next.js
Installation
npm install --save next-html
or
yarn add next-html
Usage
Create a next.config.js
in your project
// next.config.jsconst withHtml = ;moduleexports = ;
Optionally you can add your custom Next.js configuration as parameter
// next.config.jsconst withHtml = ;moduleexports = ;
assetPrefix
You can serve remote resources by setting assetPrefix option.
Example usage:
// next.config.jsconst withHtml = ;moduleexports = ;