Skip to content

Public-Environmental-Data-Partners/website

PEDP Website

Monorepo for the PEDP public website: a Next.js app (apps/web) and Sanity Studio (apps/studio) for content.

Repository layout

Path Description
apps/web Next.js site (App Router)
apps/studio Sanity Content Studio and schema

Content Managers

Non-technical overview (Studio, live site, draft preview): docs/content-managers.md.

Local development (developers)

Prerequisites

  • Node.js — Use the version listed in .nvmrc at the repo root (pinned Node for this project). Install or switch with nvm (nvm install / nvm use), fnm, or asdf. Supported range is also declared as engines.node in package.json. See Node.js releases for LTS context.
  • pnpm — Use the version declared in package.json under packageManager (Corepack reads this). Run corepack enable, then pnpm install from the repo root so your pnpm matches the project. Supported range is under engines.pnpm in the same file. Install pnpm if Corepack is not available.

Quick start

  1. Clone this repository and open a terminal at the repo root (website/).

  2. Install dependencies:

    pnpm install
  3. Environment variables

  4. Start dev servers (Next.js + Studio in parallel):

    pnpm dev

    Editors can also use the hosted Studio at https://pedp-website.sanity.studio/. See the apps/studio README for more information.

  5. Production builds (both apps):

    pnpm build

Sanity and draft preview

The Next app can show unpublished Sanity content in the browser using Next.js Draft Mode and a secret-gated route. For developers: notes are in the web app README — Draft mode (Sanity preview).

Linting and formatting

From the repo root, run ESLint and Prettier across apps/*:

Command Description
pnpm lint:all ESLint in web + studio
pnpm lint:fix:all ESLint with --fix in both
pnpm format:all Prettier write in both
pnpm format:check:all Prettier check (CI-friendly)

Per-app commands are in apps/web README and apps/studio README.

Contributing

See CONTRIBUTING.md for PEDP-wide policies and repo-specific notes (issues, PRs, and tooling).

License & Copyright

Copyright (C) 2026 Public Environmental Data Partners (PEDP)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3.0.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the LICENSE file for details.

Releases

No releases published

Packages

 
 
 

Contributors