📣 Note: This sample was developed before Next.js 10 and Next.js Commerce. (Update in progress)
Next.js is a minimalistic JAMstack framework; most of it is invisible to you (the developer). However, it is extensible when you need to customize and bring other third-party libraries.
- Pre-rendering. Static generated and server-side rendered.
- Zero Configuration. Auto code splitting, file-system based routing, and universal rendering.
- Static Exporting. It just happens. One command to build.
- Fully Extensible. Complete control over Babel and Webpack. Next-plugins.
- CSS-in-JS. Next comes with styled-jsx included, but it also works with other styling solutions.
- Ready for Production. Optimized for a smaller build size.
☝️ Create a new .env
file based on .env.sample
, and change the value of MAGENTO_URL
to point to your Magento instance.
👌 Install dependencies by running npm install
or yarn install
👌 Run npm run dev
or yarn dev
to start the application on development mode, and visit https://localhost:3000
☝️ Run npm run build
or yarn build
👌 Run npm run start
or yarn start
, and visit https://localhost:3000