Redirect dothings.warp.dev to warp.dev#17
Draft
hongyi-chen wants to merge 1 commit into
Draft
Conversation
The "Do Things with Warp" site is being sunset. Add a Next.js `redirects()` config that catches every path served by this deployment (dothings.warp.dev and any preview alias) and 308s to https://warp.dev/. This pairs with the upstream change in warp-marketing-3 that removes on-site entry points to dothings.warp.dev (footer link, /dothings and /do-things short-link redirects). Co-Authored-By: Oz <oz-agent@warp.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Next.js
redirects()config that permanently (308) redirects every path served by this deployment tohttps://warp.dev/. The site is being sunset and we want all inbound traffic to land on the main marketing site instead.Two rules:
/→https://warp.dev//:path*→https://warp.dev/(catches every other path)Why
Pairs with the upstream change in
warp-marketing-3(PR #339) that removes on-site entry points todothings.warp.dev:Do Things with Warplink is dropped, and/dothingsand/do-thingsshort links onwarp.devnow point to/instead ofhttps://dothings.warp.dev/.After this PR ships, anyone who follows an old bookmark, cached search result, or external link to
https://dothings.warp.dev/*lands onhttps://warp.dev/.Notes for reviewers
dothings.warp.devalias (instant, no deploy required). Vercel rejected that approach because the redirect target (warp.dev) is attached to a different Vercel project. A code-level Next.js redirect works for any external destination, so this is the right path.do-things.warp.dev(with the dash) does not currently have DNS or a Vercel domain attached, so nothing serves it today and no redirect is needed there. If we ever attach that hostname to this project, it'll inherit the same redirect automatically.npm run buildsucceeds and emits the redirect rules.This PR was generated with Oz.