Skip to content

Commit 03f5c26

Browse files
chore: add tldraw-new static redirect to tldraw.com/new (tldraw#8224)
In order to allow tldraw.new to redirect users to tldraw.com/new, this PR adds a minimal static site under `apps/tldraw-new/` that performs a client-side redirect. The site uses both a `<meta http-equiv="refresh">` tag and a JavaScript `window.location.replace()` call for broad browser compatibility. A `vercel.json` configures the app for static deployment on Vercel. ### Change type - [x] `other` ### Test plan 1. Deploy the `apps/tldraw-new` app to Vercel pointed at the tldraw.new domain 2. Visit tldraw.new and verify it redirects to tldraw.com/new ### Release notes - Add tldraw.new redirect to tldraw.com/new ### Code changes | Section | LOC change | | -------------- | ---------- | | Apps | +18 / -0 | <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk: adds a standalone static redirect app and Vercel redirect config with no changes to existing application logic or data handling. > > **Overview** > Adds a new `apps/tldraw-new` static site intended for deployment on Vercel that redirects all requests to `https://tldraw.com/new`. > > The redirect is implemented both via `vercel.json` route redirects and a minimal `index.html` using a meta refresh plus `window.location.replace`, with a local `.gitignore` to exclude `.vercel`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit e7cd585. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Mime Čuvalo <mimecuvalo@gmail.com>
1 parent 8617cbe commit 03f5c26

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

apps/tldraw-new/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vercel

apps/tldraw-new/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>tldraw.new</title>
7+
<meta http-equiv="refresh" content="0;url=https://tldraw.com/new" />
8+
<link rel="icon" href="https://www.tldraw.com/favicon.svg" />
9+
</head>
10+
<body>
11+
<script>
12+
window.location.replace('https://tldraw.com/new')
13+
</script>
14+
</body>
15+
</html>

apps/tldraw-new/vercel.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"redirects": [
3+
{
4+
"source": "/(.*)",
5+
"destination": "https://tldraw.com/new",
6+
"permanent": false
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)