From a26197fab0d368ae91ab9d26f6370300c4d9c882 Mon Sep 17 00:00:00 2001 From: dphuang2 Date: Fri, 6 Dec 2024 09:53:33 -0800 Subject: [PATCH] update self-hosting README to include Cloudflare Account ID configuration step --- generator/konfig-next-app/self-host/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/generator/konfig-next-app/self-host/README.md b/generator/konfig-next-app/self-host/README.md index 3b8a18727..dc52542ba 100644 --- a/generator/konfig-next-app/self-host/README.md +++ b/generator/konfig-next-app/self-host/README.md @@ -23,6 +23,7 @@ ![domain done](domain-complete.png) 1. You need to ensure that the codebase includes a mapping of your domain to the github repo. Go to [generator/konfig-next-app/src/utils/domain-to-repo-mappings.ts](../src/utils/domain-to-repo-mappings.ts) and add your domain as a key and owner/repo as the value. Look at existing entries for examples. 1. The GitHub App ID also needs to be updated to the ID of the GitHub App you created earlier. Go to [octokit.ts](../src/utils/octokit.ts) and edit `APP_ID` at the top of the file with your app's ID. Again, you can use the GitHub edit UI to do this. +1. The Cloudflare Account ID also needss to be updated to be the ID of the Cloudflare account you created earlier. Go to [cloudflare-images-from-github.ts](../src/utils/cloudflare-image-from-github.ts) and replace the `account_id` variable with your own account ID. 1. Deploy `konfig-demo-portal` off latest commit. If you want, you can also enable auto-deploys if you don't want to manually click deploy anymore: https://render.com/docs/deploys#automatic-git-deploys. ![deploy](deploy.png) 1. Once your services are deployed correctly, which can take 30 minutes or more because its building the entire Konfig monorepo, you should be able to go to your custom domain and the docs should show.