Skip to content
Tiny GraphQL API with Next.js v9
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pages
.gitignore
.nowignore
README.md
next.config.js
now.json
package.json
yarn.lock

README.md

Tiny GraphQL API with Next.js v9

Installation

Clone the repository:

git clone git@github.com:mikefrancis/nextjs-9-graphql-api.git
cd nextjs-9-graphql-api

Install the dependencies:

yarn

Development

Either use next.js for development:

API_URL=http://localhost:3000 yarn next dev

or use Zeit's now development command:

API_URL=http://localhost:3000 now dev

N.B: if you are using a different hostname and/or port, be sure to change API_URL to the root of the server which next/now boots.

Deployment

now -e API_URL=http://path/to/deployment
You can’t perform that action at this time.