/
githubmirror
/
marktext
Обзор
Документация
Войти
/
githubmirror
/
marktext
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/website/wrangler.toml
29 строк
933 B
Ran Luo
ci(website): enable Preview URLs on the Worker (#4311)
29 май 2026, 11:15
Не верифицирован
29 май 2026, 11:15
38826b8
Код
Авторство
О чём код?
name = "marktext-website" main = ".open-next/worker.js" compatibility_date = "2025-05-01" compatibility_flags = ["nodejs_compat"] # Enables versioned preview URLs like # https://pr-NNN-marktext-website.<subdomain>.workers.dev which the CI workflow # parses out of `wrangler versions upload` output and posts back to PRs. preview_urls = true [assets] directory = ".open-next/assets" binding = "ASSETS" # Bind both apex and www as Worker Custom Domains. The zone lives on the same # Cloudflare account as CLOUDFLARE_API_TOKEN (verified 2026-05-29), so wrangler # creates the route + DNS record for each automatically. If either hostname has # an existing A/AAAA/CNAME record, delete it first or the deploy will refuse to # bind. www → apex 301 redirect lives in src/middleware.ts. [[routes]] pattern = "marktext.me" custom_domain = true [[routes]] pattern = "www.marktext.me" custom_domain = true [observability] enabled = true