-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate standings table automatically
Replaces the manual process of updating the standings table in the contentful post with a custom contentful entry that will be replaced with a table that fetches the standings from supabase. Includes several changes to make this work: - Setup the supabase client - Create an API route to fetch the standings for a given week range - Create a contentful entry for the standings that is replaced by html - Ideally we could use a svelte component to replace this instead of raw html but one thing at a time Also did some rearranging of the various models and utils to hopefully allow us to scale our file structure better. And switched to pnpm.
- Loading branch information
1 parent
b99685e
commit a3ee19b
Showing
20 changed files
with
1,375 additions
and
6,727 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
# Rename this file `.env.local` and replace these with actual values from contentful | ||
# Rename this file `.env.local` and replace these with actual values from contentful/supabase | ||
|
||
# Space ID | ||
## Contentful | ||
CONTENTFUL_SPACE_ID=... | ||
# Content Delivery API - access token | ||
CONTENTFUL_ACCESS_TOKEN=... | ||
# Content Preview API - access token | ||
CONTENTFUL_PREVIEW_ACCESS_TOKEN=... | ||
CONTENTFUL_PREVIEW_ACCESS_TOKEN=... | ||
|
||
## Supabase | ||
SUPABASE_PROJECT_ID=... | ||
SUPABASE_ANON_KEY=... |
Oops, something went wrong.