From 1cfdf9509f79d3627d3c6de27590d54e4efe2ec2 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 6 Apr 2022 10:51:19 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/readme.md b/readme.md index 7d627bd..f5d9420 100644 --- a/readme.md +++ b/readme.md @@ -99,12 +99,6 @@ If you're not sure which Redis provider to use, we recommend [Redis Labs](https: Note that preview images and redis caching are both optional features. If you’d rather not deal with them, just disable them in your site config. -### Redis with GitHub Actions - -If you want to test your redis builds with GitHub Actions, you'll need to edit the [default build action](./.github/workflows/build.yml). Here is an [example from my personal branch](<(https://github.com/transitive-bullshit/nextjs-notion-starter-kit/blob/transitive-bullshit/.github/workflows/build.yml#L17-L21)>). - -You'll also need to add these environment variables to your GitHub repo as [repository secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets). - ## Styles All CSS styles that customize Notion content are located in [styles/notion.css](./styles/notion.css). They mainly target global CSS classes exported by react-notion-x [styles.css](https://github.com/NotionX/react-notion-x/blob/master/packages/react-notion-x/src/styles.css). @@ -173,9 +167,11 @@ To enable, just add a `NEXT_PUBLIC_FATHOM_ID` environment variable, which will o To enable, just add a `NEXT_PUBLIC_POSTHOG_ID` environment variable, which will only be used in production. -## Vercel Production Setup +## Environment Variables -If you're using Redis, analytics, or any other feature which requires environment variables, then you'll need to [define them in Vercel](https://vercel.com/docs/concepts/projects/environment-variables)). +If you're using Redis, analytics, or any other feature which requires environment variables, then you'll need to [define them in Vercel](https://vercel.com/docs/concepts/projects/environment-variables). + +If you want to test your redis builds with GitHub Actions, then you'll need to edit the [default build action](./.github/workflows/build.yml) to add `REDIS_HOST` and `REDIS_PASSWORD`. Here is an [example from my personal branch](<(https://github.com/transitive-bullshit/nextjs-notion-starter-kit/blob/transitive-bullshit/.github/workflows/build.yml#L17-L21)>). You'll also need to add these environment variables to your GitHub repo as [repository secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets). ## Contributing