Openstatus www.openstatus.dev

chore: explicit feed rewrite (#1567)

authored by

Maximilian Kaske and committed by
GitHub
6615575b 59dea81b

+46
+46
apps/web/next.config.js
··· 106 106 ], 107 107 destination: "https://www.stpg.dev/:path*", 108 108 }, 109 + // enfore routes to avoid infinite redirects - https://github.com/vercel/vercel/issues/6126#issuecomment-823523122 110 + // testing with https://validator.w3.org/feed/check.cgi 111 + { 112 + source: "/feed/rss", 113 + has: [ 114 + { type: "cookie", key: "sp_mode", value: "new" }, 115 + { 116 + type: "host", 117 + value: "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)$", 118 + }, 119 + ], 120 + destination: "https://www.stpg.dev/:domain/feed/rss", 121 + }, 122 + { 123 + source: "/feed/atom", 124 + has: [ 125 + { type: "cookie", key: "sp_mode", value: "new" }, 126 + { 127 + type: "host", 128 + value: "^(?!.*\\.openstatus\\.dev$)(?!openstatus\\.dev$)$", 129 + }, 130 + ], 131 + destination: "https://www.stpg.dev/:domain/feed/atom", 132 + }, 133 + { 134 + source: "/feed/rss", 135 + has: [ 136 + { type: "cookie", key: "sp_mode", value: "new" }, 137 + { 138 + type: "host", 139 + value: "^(?<domain>.+)$", 140 + }, 141 + ], 142 + destination: "https://www.stpg.dev/:domain/feed/rss", 143 + }, 144 + { 145 + source: "/feed/atom", 146 + has: [ 147 + { type: "cookie", key: "sp_mode", value: "new" }, 148 + { 149 + type: "host", 150 + value: "^(?<domain>.+)$", 151 + }, 152 + ], 153 + destination: "https://www.stpg.dev/:domain/feed/atom", 154 + }, 109 155 { 110 156 source: 111 157 "/:path((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt|badge|feed|events|monitors|protected|verify).*)",