Skip to content

Commit 7b42794

Browse files
authored
Merge pull request #7 from ramiro/add-site_domain
Fix 404 after 'login with GitHub' button is pressed
2 parents 18d0fa1 + bed6720 commit 7b42794

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Take the `functions` directory from this repo and add it to your project at the
2525

2626
If you haven’t already installed the Decap CMS files, take the `static/admin` directory from this repo and add it to your `static` directory (for Hugo) or wherever you add files to be deployed as-is to your site. There are two files under `admin`, a stub HTML file that loads the CMS, and the CMS config file `config.yml`. You can change the name of the `admin` directory.
2727

28-
The config file included here is a starter file only; you need to set this up for your site, which is beyond the scope of these instructions. However, you must set `base_url` in this config to the URL of your site (like `https://example.com`). Setting `auth_endpoint` here is optional because the default path works for the way this repo is set up.
28+
The config file included here is a starter file only; you need to set this up for your site, which is beyond the scope of these instructions. However, you must set `site_domain` and `base_url` in this config to the URL of your site (like `https://example.com`). Setting `auth_endpoint` here is optional because the default path works for the way this repo is set up.
2929

3030
### 4. Profit!
3131

static/admin/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ backend:
22
name: github
33
repo: username/repo
44
branch: main # Branch to update (optional; defaults to master)
5+
site_domain: https://example.com
56
base_url: https://example.com
67
auth_endpoint: /api/auth
78
media_folder: static/img

0 commit comments

Comments
 (0)