Replies: 1 comment
-
Maybe this is the idea: // entry.server.tsx
import {redirect} from '@remix-run/react';
export default async function handleRequest(
request: Request,
) {
const url = new URL(request.url);
if (redirects[url.pathname]) {
return redirect(redirects[url.pathname], 301);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently we're having to create a bunch of routes with loaders to redirect. Is there no better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions