Openstatus www.openstatus.dev

fix form dns (#1573)

* fix form dns

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
fd441693 c9baf7e3

+5 -6
-3
apps/dashboard/src/components/forms/monitor/form-general.tsx
··· 271 271 { value: "tcp", icon: Network, label: "TCP" }, 272 272 { value: "dns", icon: Server, label: "DNS" }, 273 273 ].map((type) => { 274 - if (type.value === "dns") { 275 - return null; 276 - } 277 274 return ( 278 275 <FormItem 279 276 key={type.value}
+5 -3
apps/status-page/src/middleware.ts
··· 129 129 rewriteUrl.search = url.search; 130 130 return NextResponse.rewrite(rewriteUrl); 131 131 } 132 - if(_page.customDomain && subdomain ) { 132 + if (_page.customDomain && subdomain) { 133 133 console.log({ url: req.url }); 134 134 // const vercelURL = process.env.VERCEL_URL || "www.stpg.dev"; 135 135 // console.log({newUrl: vercelURL}) 136 136 if (pathnames.length > 2) { 137 - 138 137 const pathname = pathnames.slice(2).join("/"); 139 138 140 - const rewriteUrl = new URL(`/${pathname}`, `https://${_page.slug}.stpg.dev`); 139 + const rewriteUrl = new URL( 140 + `/${pathname}`, 141 + `https://${_page.slug}.stpg.dev`, 142 + ); 141 143 console.log({ rewriteUrl }); 142 144 rewriteUrl.search = url.search; 143 145 return NextResponse.rewrite(rewriteUrl);