Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit c20202d

Browse files
committed
Redirect to Linux Blog
Fixes #4203 Redirect the app to the Linux Blog and take the product offline. * **netlify.toml**: Add a redirect from `https://app.opensauced.pizza/*` to `https://opensauced.pizza/blog/opensauced-is-joining-the-linux-foundation`. * **middleware.ts**: Add a check to redirect all routes to `https://opensauced.pizza/blog/opensauced-is-joining-the-linux-foundation`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/open-sauced/app/issues/4203?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 738f574 commit c20202d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

middleware.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,7 @@ export async function middleware(req: NextRequest) {
132132
if (!req.nextUrl.searchParams.has("redirectedFrom")) {
133133
return NextResponse.redirect(redirectUrl);
134134
}
135+
136+
// Redirect all routes to the Linux Blog
137+
return NextResponse.redirect("https://opensauced.pizza/blog/opensauced-is-joining-the-linux-foundation");
135138
}

netlify.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ from = "https://hot.opensauced.pizza/*"
4444
to = "https://app.opensauced.pizza/explore"
4545
status = 301
4646
force = true
47+
48+
[[redirects]]
49+
from = "https://app.opensauced.pizza/*"
50+
to = "https://opensauced.pizza/blog/opensauced-is-joining-the-linux-foundation"
51+
status = 301
52+
force = true

0 commit comments

Comments
 (0)