Neocon Propaganda Machine

    next-nginx-routes

    1.0.0 • Public • Published

    next-nginx-routes

    Generate Nginx routes configuration file for Next.js static HMTL export.

    Getting started

    Installation

    yarn add --dev next-nginx-routes

    Generate Nginx configuration file

    Add next-nginx-routes to your export script:

    {
      "export": "next build && next export && next-nginx-routes"
    }

    And run Next.js export:

    yarn run export

    Include Nginx configuration file

    Finally include the generated configuration file next-routes.conf and the Next.js output in your Nginx site configuration file. See example folder for a minimal Docker example.

    Requirements

    More

    • Read more about this approach in our blog post.

    Install

    npm i next-nginx-routes

    DownloadsWeekly Downloads

    14

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    14.5 kB

    Total Files

    15

    Last publish

    Collaborators

    • friedjoff