Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.49 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.49 KB

Website

Frontend build for the nft.storage website.

Getting Started

If you'd like to get started with front end development quickly, and don't mind relying on CI server deploys, you can follow the no environment guide

Inside the /packages/website folder create a file called .env.local with the following content.

NEXT_PUBLIC_ENV=dev
NEXT_PUBLIC_API=http://127.0.0.1:8787
NEXT_PUBLIC_MAGIC=<magic test mode publishable key>
NEXT_PUBLIC_SENTRY_DSN=<sentry dsn>
SENTRY_URL=https://sentry.io/
SENTRY_ORG=<sentry org name>
SENTRY_PROJECT=<sentry project name>
SENTRY_AUTH_TOKEN=<sentry auth token>

Production vars should set in Cloudflare Pages settings.

Usage

Running Locally

cd packages/website
yarn install
yarn dev

No Environment Guide

This guide should only be used if your environment isn't set up correctly, and you don't mind the ~10m turnaround time for Github CI.

If you choose to use this method, use your browsers devtools on the deployed code as much as possible, so you don't have to wait for CI to redeploy your code.

  1. Create a draft PR in Github draft-pr

  2. Wait for CI to build your code. ci-build

  3. Mess around with your browser's devtools, as usual. draft-pr