NextJS Tips Series: Static HTML export

nextjs tips series — static HTML export

next exportexports your app to static HTML, which can be run standalone without the need of a Node.js server (for those who want to buy a template on HTML format on any marketplace like Envato ThemeForest, etc..).

The exported app supports almost every feature of Next.js, incl. dynamic routes, prefetching, preloading and dynamic imports.

// Package.json
"scripts": {
"build": "next build && next export"
}

Thank you :)

FullStack Developer :)

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Date formats for Apache CouchDB and Cloudant

Creating a React Component Library by Abstracting a React Component Library

How to Convert HTML to DOCX in JavaScript

Using FLUTTER THEMING TOOL’s generated, DART Material theme, in your Application.

Securing Angular + Spring Boot Application with Okta Authorization Server

Check a URL for SSRF Threats in Node.JS

Reusing server-side http responses in front-end when using SSR in Angular

Props to you, React!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Said BADAOUI

Said BADAOUI

FullStack Developer :)

More from Medium

How to Build an Ecommerce React Template - Chapter 1: The Beginning

How I Created a Responsive Navbar using Tailwind CSS

tailwindcss

Dark Mode&Light Mode: Next.js with next-themes and Sass

Experience with Tailwind CSS!