Skip to content

Commit

Permalink
add redirects to new paraglide docs
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelstroschein committed Mar 10, 2025
1 parent bd794fa commit 0ad3b13
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions inlang/packages/website/src/server/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,34 @@ router.get("/documentation/*", (request, response) => {
return response.redirect(301, "https://github.com/opral/inlang-sdk");
});

router.get("/c/astro", (request, response) => {
return response.redirect(
301,
"https://inlang.com/m/gerre34r/library-inlang-paraglideJs/astro"
);
});

router.get("/c/svelte", (request, response) => {
return response.redirect(
301,
"https://inlang.com/m/gerre34r/library-inlang-paraglideJs/sveltekit"
);
});

router.get("m/osslbuzt*", (request, response) => {
return response.redirect(
301,
"https://inlang.com/m/gerre34r/library-inlang-paraglideJs/next-js"
);
});

router.get("/c/(next|nextjs)", (request, response) => {
return response.redirect(
301,
"https://inlang.com/m/gerre34r/library-inlang-paraglideJs/next-js"
);
});

// serving #src/pages and /public
//! it is extremely important that a request handler is not async to catch errors
//! express does not catch async errors. hence, renderPage uses the callback pattern
Expand Down

0 comments on commit 0ad3b13

Please sign in to comment.