Website for The Benson Orbit, the student-run newspaper of Benson Polytechnic High School. Built with Next.js, Tailwind CSS, and Sanity. Deployed with Vercel.
This repository also contains the Sanity Studio configuration (sanity.config.ts) for the project, which is deployed separately to Sanity's own hosting.
You'll need Node.js and pnpm installed on your machine. You should also have a Sanity project set up, unless you're working with the production project.
- Clone the repository.
- Copy
.env.exampleto.env.localand fill in the environment variables.- If you need access to the production Sanity project, ask a current developer for these values.
- Run
pnpm installto install dependencies. - Run
pnpm devto start the Next.js development server.
If you make changes to the Sanity schema or GROQ queries, run pnpm run typegen to generate TypeScript types.
Before committing, run pnpm run format to format your code using Prettier.