Skip to content

Commit 6851874

Browse files
Update compatibility date and refine asset handling in wrangler.toml
1 parent 778507b commit 6851874

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

website/wrangler.toml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
# Cloudflare Pages Configuration
21
name = "mosaic-website"
3-
compatibility_date = "2024-01-01"
2+
compatibility_date = "2026-06-24"
43

5-
# Pages-specific settings
6-
pages_build_output_dir = "dist"
7-
8-
# Environment variables (set these in Cloudflare Dashboard)
9-
# GITHUB_TOKEN - Your GitHub personal access token for API calls
10-
# CF_PAGES_WEBHOOK_URL - Webhook URL to trigger rebuilds (from Pages settings)
11-
12-
[vars]
13-
# Non-sensitive variables can be defined here
14-
NODE_VERSION = "20"
4+
# Serve the Vite build output (dist/) as a static-asset Worker.
5+
# `single-page-application` serves index.html for client-side routes
6+
# (vue-router history mode), so refreshing /projects, /about, etc. works.
7+
[assets]
8+
directory = "./dist"
9+
not_found_handling = "single-page-application"

0 commit comments

Comments
 (0)