mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 17:07:24 +08:00
GitHub Pages is a static host and does not support server-side redirects. Astro redirects config only works for SSR targets, so legacyHtmlRedirects had no effect. Replace with real .html.astro pages using meta http-equiv=refresh and link rel=canonical. Also disallow legacy URLs in robots.txt.
16 lines
428 B
Text
16 lines
428 B
Text
---
|
|
const base = import.meta.env.BASE_URL.replace(/\/$/, '');
|
|
const destination = `${base}/alertmanager/`;
|
|
---
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Redirecting…</title>
|
|
<link rel="canonical" href={destination} />
|
|
<meta http-equiv="refresh" content={`0; url=${destination}`} />
|
|
</head>
|
|
<body>
|
|
<p>Redirecting to <a href={destination}>{destination}</a>…</p>
|
|
</body>
|
|
</html>
|