Closed chalkedgoose closed 3 years ago
@overlisted @amitojsingh366
can you do it yourself
@overlisted I could do it myself but it will be a while due to my day job. And I also wanted feedback/validation on this approach to the 404 redirect.
@overlisted Can I take this?
@overlisted Can I take this?
go ahead
@chalkedgoose i tried it and unfortunately it seems like you cannot turn a 404 to a 301. it will have to go through pages/404.tsx
and then redirected to /dash
and looking at it again i don't see why we would want to turn a 404 into a 301
and looking at it again i don't see why we would want to turn a 404 into a 301
@amitojsingh366 The reason you'd want to do it is that your essentially utilizing the page as a 301 redirect anyways. There's just no status code and a client side redirect.
Is your feature request related to a problem? Please describe.
dogehouse/kibbeh/src/pages/404.tsx
is redundant since we don't have a 404 page it is a simple redirect. We should instead use the Redirects feature built into the Next by modifyingnext.config.js
This should significantly speed up redirects and send a 301 redirect response code to browsers.