-
Notifications
You must be signed in to change notification settings - Fork 4
Next.js Setup
Ben Marshall edited this page Feb 1, 2023
·
6 revisions
Before you get started, make sure you have the following dependencies installed on your computer:
If you run into issues with NPM installing, try using npm i --legacy-peer-deps
instead.
- Clone the frontend framework with
create-next-app
npx create-next-app -e https://github.com/Highfivery/nextjs-starter/tree/main --use-npm nextjs-starter
- Change directories
cd nextjs-starter
ENV variables are like constants in wp-config.php
. They're required in order for things like authentication with WordPress and other 3rd party services.
- Copy the sample ENV file:
cp .env.sample .env
- Open the
.env
file in your code editor & add your credentials
You can kick off a development server by running:
npm run dev