Skip to content

Commit dbbb447

Browse files
committed
feat: Configure deploy preview links for CMS resources
- Add site_url and deploy_preview_url configuration - Set preview_path to direct users to Additional Resources page - Preview links now point to: deploy-preview-{PR#}--a11ycanada.netlify.app/en/additional-resources/ - Allows users to immediately see their new resource in context
1 parent 525532b commit dbbb447

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/admin/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ public_folder: "/img"
1616
# Publish mode
1717
publish_mode: editorial_workflow
1818

19+
# Site URL for deploy previews
20+
site_url: https://a11ycanada.netlify.app
21+
# Deploy preview template - {{branch}} is replaced with PR branch name
22+
# Resources page path appended to preview URL
23+
deploy_preview_url: https://deploy-preview-{{pr_number}}--a11ycanada.netlify.app
24+
1925
# NOTE: Topic options below should match src/_data/resourceTopics.js
2026
# If you add/modify topics, update BOTH files to keep them in sync
2127

@@ -35,6 +41,8 @@ collections:
3541
folder: "src/resources"
3642
create: true
3743
slug: "{{slug}}"
44+
# Preview path - directs to Additional Resources page in deploy preview
45+
preview_path: "en/additional-resources/"
3846
view_filters:
3947
- label: "Drafts"
4048
field: draft

0 commit comments

Comments
 (0)