https://github.com/monashcoding/monashcoding-site
https://github.com/monashcoding/monashcoding-site
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/monashcoding/monashcoding-site
- Owner: monashcoding
- Created: 2025-11-28T23:03:56.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2026-03-13T15:08:47.000Z (3 months ago)
- Last Synced: 2026-03-14T03:03:22.743Z (3 months ago)
- Language: TypeScript
- Homepage: https://monashcoding-site.vercel.app
- Size: 105 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# monashcoding-site
## Notion Committee Import
Import committee members from Notion into Sanity via **Sanity Studio → Notion Import**.
**Export from Notion:**
1. Go to **Home > Committee Directory > All**
2. Click **...** → **Export**
3. Select: Markdown & CSV, Current view, Everything, Include subpages, Create folders
**Import to Sanity:**
1. Upload the zip in Sanity Studio
2. Review parsed members, choose Replace/Skip for duplicates
3. Click Import
Parses: name, role, team, past roles, birthday, LinkedIn, Discord, Bento.me, MBTI, first day, photos.
---
## Sanity Webhook Setup
The site uses on-demand revalidation via a webhook that Sanity calls when content is published.
### Endpoint
```
POST /api/revalidate
```
### Environment Variable
Add to the server:
```
SANITY_WEBHOOK_SECRET=secret123
```
### Setting up the webhook in Sanity
1. Go to [manage.sanity.io](https://manage.sanity.io)
2. Select the project
3. Go to **API** > **Webhooks**
4. Click **Create webhook**
5. Configure:
- **Name**: `Revalidate site`
- **URL**: `https://your-domain.com/api/revalidate`
- **Trigger on**: `Create`, `Update`, `Delete`
- **Filter**: Leave it empty to trigger all
- **Projection**: `{_type}` (**important!**)
- **HTTP method**: `POST`
- **HTTP Headers**: Add `x-sanity-webhook-secret` with `SANITY_WEBHOOK_SECRET` from `.env.local`
- **API version**: Latest (e.g. `2024-01-01`)
- **Draft**: Disabled (only trigger on publish)