Commit 03f5c26
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments