Skip to content

Commit 31e76e1

Browse files
committed
Update publishing static site docs
1 parent 239e699 commit 31e76e1

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

docs-src/docs/Publishing a Static Site.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,15 +877,15 @@ Vercel deploys on every push and provides a preview URL for each branch.
877877

878878
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and go to **Compute > Workers & Pages**
879879
2. Click **Create application > Pages > Connect to Git**
880-
3. Select your repository
880+
3. Select your repository (if you have already selected repositories without granting access to all, select 'Add a Github account' when selecting Github user / organisation)
881881

882882
### 2. Configure Build Settings
883883

884884
In **Build configuration**, set the following:
885885

886886
| Setting | Value |
887887
|---|---|
888-
| Build command | `npx @appsoftwareltd/asnotes-publish --config ./asnotes-publish.json` |
888+
| Build command | e.g `npx @appsoftwareltd/asnotes-publish --config ./asnotes-publish.json` with the path to `asnotes-publish.json` |
889889
| Build output directory | The `outputDir` value from your config file (e.g. `site`) |
890890
| Root directory | The directory containing your config file (leave empty if at repo root) |
891891

@@ -934,6 +934,14 @@ my-repo/
934934
935935
The `--config` path and Build output directory are both relative to the Root directory. If Root directory is wrong, the build will fail because Cloudflare cannot find the config file or its referenced directories.
936936
937+
### Custom Domains
938+
939+
Set up a custom domain for your site on the Workers and Pages settings section.
940+
941+
`https://dash.cloudflare.com/><CF-ACCOUNT-ID>/workers/services/view/<GH_REPOSITORY_NAME>/production/settings`
942+
943+
### Deployment
944+
937945
Click **Save and Deploy**. Cloudflare Pages deploys on every push with automatic preview deployments for branches. No `--base-url` is needed since Cloudflare Pages serves from the domain root.
938946
939947
## Writing a Custom Layout CSS

0 commit comments

Comments
 (0)