Skip to content

Getting Started With Next.js

If you’re starting a new Next.js project, you can use the freestyle-next-template to get started quickly.

Development

First, install your dependencies

Terminal window
npm install

To start the dev server run:

Terminal window
npx freestyle dev

Production / Deployment

To build your app for production, run:

Terminal window
npx freestyle build

This will create a .next folder with your built app.

To deploy your app, run:

Terminal window
npx freestyle deploy