This is a Next.js project.
Install node_modules:
yarn
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
You need to add FAUNADB_READ_ONLY_KEY so that you'll be able to run the project and see the products from FaunaDB.