feat(app): return 404 for unknown paths (#12654)

* feat(app): return 404 for unknown paths

- vercel: drop the framework preset's catch-all to index.html, keep a rewrite for /excalidraw-plus-export
- add a static 404 page (excluded from the SW precache and the sitemap)
- service worker: serve the cached app shell only for / and APP_ROUTES
- APP_ROUTES list + test that it matches the vercel.json rewrites
- remove the dead web share target (nothing handled POST /web-share-target)
- robots.txt: simplify to what it already meant (allow all)

* fix(app): let the 404 page scroll and shrink on short screens

* feat(app): add Excalidraw+, docs and CLI links to the 404 page

* feat(app): add MCP link to the 404 page

* feat(app): track 404 page views on excalidraw.com
This commit is contained in:
David Luzar authored and GitHub committed 2026-11-17 18:08:12 +01:00
1 parent c0a0ca348f
commit 680f58ccfd
8 files changed
+406 -59

No files matched your search

+2 -1
View File
@@ -93,6 +93,7 @@ import {
STORAGE_KEYS,
SYNC_BROWSER_TABS_TIMEOUT,
} from "./app_constants";
import { APP_ROUTES } from "./app_routes";
import Collab, {
collabAPIAtom,
isCollaboratingAtom,
@@ -1312,7 +1313,7 @@ const ExcalidrawWrapper = () => {
const ExcalidrawApp = () => {
const isCloudExportWindow =
window.location.pathname === "/excalidraw-plus-export";
window.location.pathname === APP_ROUTES.excalidrawPlusExport;
if (isCloudExportWindow) {
return <ExcalidrawPlusIframeExport />;
}
+11
View File
@@ -0,0 +1,11 @@
/**
* Paths, besides `/`, that the app is served on.
*
* Adding a path here lets the service worker serve the cached app for it
* (see `navigateFallbackAllowlist` in vite.config.mts). The host must serve
* the app for it too, or the path is a 404: add a matching rewrite to
* `/index.html` in the root vercel.json (tests/appRoutes.test.ts checks it).
*/
export const APP_ROUTES = {
excalidrawPlusExport: "/excalidraw-plus-export",
} as const;
+20
View File
@@ -0,0 +1,20 @@
import fs from "fs";
import path from "path";
import { APP_ROUTES } from "../app_routes";
describe("app routes", () => {
it("should each have a rewrite to the app in vercel.json, and vice versa", () => {
const vercelConfig: {
rewrites?: { source: string; destination: string }[];
} = JSON.parse(
fs.readFileSync(path.resolve(__dirname, "../../vercel.json"), "utf8"),
);
const rewrittenToApp = (vercelConfig.rewrites ?? [])
.filter((rewrite) => rewrite.destination === "/index.html")
.map((rewrite) => rewrite.source);
expect(rewrittenToApp.sort()).toEqual(Object.values(APP_ROUTES).sort());
});
});
+13 -17
View File
@@ -9,6 +9,7 @@ import { createHtmlPlugin } from "vite-plugin-html";
import Sitemap from "vite-plugin-sitemap";
import { woff2BrowserPlugin } from "../scripts/woff2/woff2-vite-plugins";
import { APP_ROUTES } from "./app_routes";
import { MERMAID_CHUNKS_LIST_NAME } from "./data/cacheMermaidChunks";
import type { Plugin, Rollup } from "vite";
@@ -274,6 +275,7 @@ export default defineConfig(({ mode }) => {
Sitemap({
hostname: "https://excalidraw.com",
outDir: "build",
exclude: ["/404"],
changefreq: "monthly",
// its static in public folder
generateRobotsTxt: false,
@@ -306,8 +308,19 @@ export default defineConfig(({ mode }) => {
},
workbox: {
// Serve the cached app shell only for the paths the app lives on
// (matched against pathname + search). Anything else goes to the
// network, so that unknown paths get the server's 404.
// To add a path, add it to APP_ROUTES.
navigateFallbackAllowlist: [
/^\/(\?|$)/,
...Object.values(APP_ROUTES).map(
(route) => new RegExp(`^${route}(\\?|$)`),
),
],
// don't precache fonts, locales and separate chunks
globIgnores: [
"404.html",
"fonts.css",
"**/locales/**",
"service-worker.js",
@@ -433,23 +446,6 @@ export default defineConfig(({ mode }) => {
},
},
],
share_target: {
action: "/web-share-target",
method: "POST",
enctype: "multipart/form-data",
params: {
files: [
{
name: "file",
accept: [
"application/vnd.excalidraw+json",
"application/json",
".excalidraw",
],
},
],
},
},
screenshots: [
{
src: "/screenshots/virtual-whiteboard.png",
+1 -32
View File
@@ -15,7 +15,6 @@ import {
shouldRotateWithDiscreteAngle,
isArrowKey,
KEYS,
APP_NAME,
CURSOR_TYPE,
DEFAULT_STROKE_STREAMLINE,
DEFAULT_STROKE_STREAMLINE_PRECISE,
@@ -3895,16 +3894,7 @@ class App extends React.Component<AppProps, AppState> {
this.resizeObserver?.observe(this.excalidrawContainerRef.current);
}
const searchParams = new URLSearchParams(
this.ownerWindow.location.search.slice(1),
);
if (searchParams.has("web-share-target")) {
// Obtain a file that was shared via the Web Share Target API.
this.restoreFileFromShare();
} else {
this.updateDOMRect(this.initializeScene);
}
this.updateDOMRect(this.initializeScene);
// note that this check seems to always pass in localhost
if (isBrave() && !isMeasureTextSupported()) {
@@ -4920,27 +4910,6 @@ class App extends React.Component<AppProps, AppState> {
});
}
restoreFileFromShare = async () => {
try {
const webShareTargetCache = await caches.open("web-share-target");
const response = await webShareTargetCache.match("shared-file");
if (response) {
const blob = await response.blob();
const file = new File([blob], blob.name || "", { type: blob.type });
this.loadFileToCanvas(file, null);
await webShareTargetCache.delete("shared-file");
this.ownerWindow.history.replaceState(
null,
APP_NAME,
this.ownerWindow.location.pathname,
);
}
} catch (error: any) {
this.setState({ errorMessage: error.message });
}
};
/**
* adds supplied files to existing files in the appState.
* NOTE if file already exists in editor state, the file data is not updated
+351
View File
@@ -0,0 +1,351 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Page not found | Excalidraw</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex" />
<meta name="color-scheme" content="light dark" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<style>
:root {
--background: #ffffff;
--text: #1b1b1f;
--text-muted: #6b6b76;
--primary: #6965db;
--primary-hover: #5b57d1;
--on-primary: #ffffff;
--glow: rgba(105, 101, 219, 0.14);
--grid: rgba(27, 27, 31, 0.07);
--cursor: #f76707;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #121212;
--text: #e3e3e8;
--text-muted: #a0a0ab;
--primary: #a8a5ff;
--primary-hover: #b2aeff;
--on-primary: #121212;
--glow: rgba(168, 165, 255, 0.13);
--grid: rgba(227, 227, 232, 0.06);
--cursor: #ffa94d;
}
}
body {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
min-height: 100dvh;
margin: 0;
padding: 1.5rem;
box-sizing: border-box;
/* the cursor label may stick out sideways; vertical overflow scrolls */
overflow-x: hidden;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif;
background: var(--background);
color: var(--text);
}
/* canvas grid, fading out towards the edges */
body::before {
content: "";
position: absolute;
inset: 0;
background-image: radial-gradient(
circle at 50% 42%,
var(--glow),
transparent 34rem
),
linear-gradient(var(--grid) 1px, transparent 1px),
linear-gradient(90deg, var(--grid) 1px, transparent 1px);
background-size: auto, 24px 24px, 24px 24px;
background-position: center;
-webkit-mask-image: radial-gradient(
ellipse at 50% 45%,
#000 20%,
transparent 72%
);
mask-image: radial-gradient(
ellipse at 50% 45%,
#000 20%,
transparent 72%
);
}
main {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
/* shrink on short (landscape) screens so that everything fits */
max-width: clamp(15rem, calc((100vh - 16rem) * 1.6), 30rem);
text-align: center;
}
svg {
display: block;
overflow: visible;
}
.art {
width: 100%;
height: auto;
}
.digits {
fill: var(--text);
}
.selection {
fill: none;
stroke: var(--primary);
stroke-width: 1;
}
.handles {
fill: var(--background);
stroke: var(--primary);
stroke-width: 1;
}
.cursor {
animation: drift 5s ease-in-out infinite;
}
.cursor path {
fill: var(--cursor);
stroke: var(--background);
stroke-width: 1.5;
stroke-linejoin: round;
}
.cursor rect {
fill: var(--cursor);
}
.cursor text {
fill: #1b1b1f;
font-size: 12px;
font-weight: 600;
}
h1 {
width: 82%;
margin: 1.25rem 0 0;
}
h1 svg {
width: 100%;
height: auto;
fill: var(--text);
}
.underline {
fill: none;
stroke: var(--primary);
stroke-width: 4.5;
stroke-linecap: round;
stroke-dasharray: 1;
stroke-dashoffset: 1;
animation: draw 0.7s 0.5s ease-out forwards;
}
p {
margin: 0.75rem 0 0;
font-size: 1.0625rem;
line-height: 1.5;
color: var(--text-muted);
}
.button {
margin-top: 1.75rem;
padding: 0.75rem 1.5rem;
border-radius: 0.625rem;
font-weight: 600;
text-decoration: none;
background: var(--primary);
color: var(--on-primary);
transition: background-color 0.15s, transform 0.15s;
}
.button:hover {
background: var(--primary-hover);
transform: translateY(-1px);
}
a:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 3px;
border-radius: 0.25rem;
}
nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem 0.75rem;
margin-top: 1.5rem;
font-size: 0.9375rem;
}
nav span {
color: var(--text-muted);
opacity: 0.6;
}
nav a {
color: var(--text-muted);
text-decoration: none;
transition: color 0.15s;
}
nav a:hover {
color: var(--primary);
text-decoration: underline;
text-underline-offset: 0.2em;
}
main > * {
animation: rise 0.5s ease-out backwards;
}
main > :nth-child(2) {
animation-delay: 0.08s;
}
main > :nth-child(3) {
animation-delay: 0.16s;
}
main > :nth-child(4) {
animation-delay: 0.24s;
}
main > :nth-child(5) {
animation-delay: 0.32s;
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(10px);
}
}
@keyframes draw {
to {
stroke-dashoffset: 0;
}
}
@keyframes drift {
50% {
transform: translate(7px, 5px);
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before {
animation: none !important;
transition: none !important;
}
.underline {
stroke-dashoffset: 0;
}
}
</style>
</head>
<body>
<main>
<!-- "404" as a selected element on the canvas (Excalifont outlines) -->
<svg class="art" viewBox="-10 8 520 262" aria-hidden="true">
<g transform="rotate(-3 240 139.9)">
<path
class="digits"
transform="translate(41 215.7) scale(0.22)"
d="M397 36Q377 39 363 31L359 27L343 11Q328 -8 330 -48V-60V-104Q330 -115 337 -176L341 -208L330 -214H170Q90 -235 61 -265Q53 -271 48 -280Q43 -288 40 -294Q37 -299 36 -312Q35 -326 35 -330Q35 -333 36 -350Q36 -366 36 -367Q45 -401 72 -452Q100 -502 122 -531L259 -700Q284 -729 331 -726Q360 -708 351 -679Q300 -614 256 -554Q192 -477 170 -447Q169 -441 158 -423Q125 -359 142 -346Q148 -340 176 -323L183 -319Q193 -318 197 -316Q201 -314 200 -312Q200 -311 200 -310H201Q202 -310 203 -310Q204 -311 207 -311Q210 -311 213 -311Q260 -311 324 -319Q328 -319 340 -321Q352 -323 357 -323L368 -325Q376 -329 379 -337Q412 -433 419 -513Q421 -532 438 -548Q455 -563 474 -560Q496 -564 511 -544Q526 -525 524 -503Q528 -494 516 -471Q513 -466 511 -461Q488 -408 486 -382Q481 -356 471 -332Q498 -300 509 -260Q509 -244 496 -220Q483 -196 470 -195L440 -189Q438 -189 436 -188H434Q425 -158 424 -146Q422 -135 422 -97Q420 -74 429 -47L432 -35Q435 -23 436 -16Q436 6 416 24ZM848 29Q800 36 722 -38Q708 -52 698 -70Q689 -88 678 -118Q666 -147 660 -161L656 -174Q647 -231 646 -275Q645 -318 657 -364Q669 -410 692 -470Q714 -530 722 -558Q778 -711 845 -723Q847 -725 850 -724Q852 -724 856 -722Q860 -719 863 -716Q866 -714 868 -711Q871 -708 872 -708V-671Q872 -663 877 -663Q931 -682 968 -682Q1048 -682 1112 -618Q1165 -563 1182 -455Q1199 -347 1165 -265Q1121 -133 1033 -54Q945 24 848 29ZM893 -75Q953 -96 996 -143Q1038 -190 1070 -266Q1100 -315 1100 -400Q1099 -484 1064 -526Q1037 -560 1012 -574Q987 -587 953 -587Q906 -587 871 -571Q858 -562 832 -507Q820 -503 815 -506Q810 -508 801 -525Q744 -386 736 -291Q744 -206 758 -178Q790 -118 820 -92Q851 -66 893 -75ZM1646 36Q1626 39 1612 31L1608 27L1592 11Q1577 -8 1579 -48V-60V-104Q1579 -115 1586 -176L1590 -208L1579 -214H1419Q1339 -235 1310 -265Q1302 -271 1297 -280Q1292 -288 1289 -294Q1286 -299 1285 -312Q1284 -326 1284 -330Q1284 -333 1284 -350Q1285 -366 1285 -367Q1294 -401 1322 -452Q1349 -502 1371 -531L1508 -700Q1533 -729 1580 -726Q1609 -708 1600 -679Q1549 -614 1505 -554Q1441 -477 1419 -447Q1418 -441 1407 -423Q1374 -359 1391 -346Q1397 -340 1425 -323L1432 -319Q1442 -318 1446 -316Q1450 -314 1450 -312Q1449 -311 1449 -310H1450Q1451 -310 1452 -310Q1453 -311 1456 -311Q1459 -311 1462 -311Q1509 -311 1573 -319Q1577 -319 1589 -321Q1601 -323 1606 -323L1617 -325Q1625 -329 1628 -337Q1661 -433 1668 -513Q1670 -532 1687 -548Q1704 -563 1723 -560Q1745 -564 1760 -544Q1775 -525 1773 -503Q1777 -494 1765 -471Q1762 -466 1760 -461Q1737 -408 1735 -382Q1730 -356 1720 -332Q1747 -300 1758 -260Q1758 -244 1745 -220Q1732 -196 1719 -195L1689 -189Q1687 -189 1685 -188H1683Q1674 -158 1672 -146Q1671 -135 1671 -97Q1669 -74 1678 -47L1681 -35Q1684 -23 1685 -16Q1685 6 1665 24Z"
/>
<g class="selection">
<rect x="36.7" y="44" width="406.6" height="191.9" />
<path d="M240 44V28" />
</g>
<g class="handles">
<rect x="32.7" y="40" width="8" height="8" rx="2" />
<rect x="32.7" y="135.9" width="8" height="8" rx="2" />
<rect x="32.7" y="231.9" width="8" height="8" rx="2" />
<rect x="236" y="40" width="8" height="8" rx="2" />
<rect x="236" y="231.9" width="8" height="8" rx="2" />
<rect x="439.3" y="40" width="8" height="8" rx="2" />
<rect x="439.3" y="135.9" width="8" height="8" rx="2" />
<rect x="439.3" y="231.9" width="8" height="8" rx="2" />
<circle cx="240" cy="24" r="4" />
</g>
</g>
<g class="cursor">
<g transform="translate(451 228.1) scale(1.3)">
<path d="M0 0v19l5.5-6.5 9.5-1.5z" />
<rect x="12" y="18" width="46" height="22" rx="6" />
<text x="35" y="33" text-anchor="middle">lost?</text>
</g>
</g>
</svg>
<h1>
<svg
viewBox="0 -900 8424 1180"
role="img"
aria-label="You drew a blank."
>
<path
d="M221 61Q210 61 203 47Q180 21 178 -28Q178 -47 189 -93Q200 -139 198 -162Q199 -195 196 -215Q192 -235 178 -268L176 -270Q174 -272 172 -274Q171 -276 168 -278Q166 -280 165 -281Q154 -288 145 -296Q136 -303 130 -308Q125 -313 118 -324Q112 -336 110 -342Q107 -347 100 -364Q93 -380 89 -388Q67 -464 64 -502Q64 -524 55 -559Q46 -594 45 -610Q45 -621 54 -631Q62 -641 72 -641Q111 -643 121 -635Q139 -609 148 -578Q156 -547 161 -506Q166 -466 172 -445Q175 -419 203 -388Q227 -386 242 -389Q256 -392 273 -407Q282 -413 316 -444Q351 -474 355 -477Q422 -543 462 -622Q478 -638 488 -641Q508 -639 513 -638Q518 -638 528 -635Q538 -632 544 -626Q549 -620 557 -609Q570 -599 557 -559L387 -388Q332 -349 298 -312Q301 -265 299 -206Q297 -147 285 -103Q279 -87 269 -34Q259 18 247 41Q233 61 221 61ZM785 5Q734 -6 714 -11Q695 -16 673 -32Q651 -47 640 -68Q630 -89 614 -133L619 -239Q612 -250 612 -271Q612 -292 619 -302Q662 -333 728 -374Q770 -399 833 -399Q907 -399 976 -367Q1044 -335 1089 -279Q1141 -208 1114 -146Q1050 -36 924 -7Q908 -1 888 2Q869 5 857 6Q845 6 819 6Q793 5 785 5ZM826 -71Q866 -71 910 -82Q953 -94 990 -122Q1027 -151 1032 -190Q1031 -202 1028 -211Q1026 -220 1020 -228Q1015 -237 1012 -241Q1008 -245 1000 -254Q991 -263 988 -266Q903 -313 859 -313Q828 -313 815 -307Q787 -296 785 -294Q779 -289 766 -280Q753 -271 748 -266Q715 -241 712 -217Q709 -205 708 -191Q708 -177 708 -160Q709 -143 709 -133Q716 -119 732 -102Q748 -86 760 -83Q783 -71 826 -71ZM1639 13Q1633 13 1624 9Q1616 5 1606 0Q1596 -6 1591 -8Q1582 -18 1574 -30Q1567 -43 1563 -51Q1559 -59 1556 -78Q1552 -97 1551 -102Q1550 -106 1547 -132Q1544 -157 1544 -159Q1481 -35 1359 -3Q1340 -4 1326 -6Q1313 -9 1299 -18Q1285 -28 1280 -32Q1276 -35 1258 -54Q1240 -73 1236 -77Q1225 -102 1220 -127Q1215 -152 1214 -164Q1213 -177 1214 -212Q1215 -247 1215 -258Q1221 -264 1221 -277V-283Q1218 -298 1234 -353Q1236 -357 1246 -366Q1255 -376 1259 -378Q1268 -380 1286 -376Q1305 -372 1308 -372Q1327 -355 1327 -309Q1327 -307 1324 -302L1321 -296Q1301 -253 1301 -206Q1295 -155 1324 -107Q1331 -104 1340 -100Q1350 -95 1356 -93Q1363 -91 1372 -91Q1401 -91 1429 -120Q1504 -223 1533 -298L1536 -339Q1540 -380 1553 -394Q1564 -408 1571 -408Q1574 -408 1578 -408Q1585 -409 1590 -407Q1596 -405 1604 -398Q1613 -390 1616 -388Q1635 -356 1632 -312Q1632 -274 1628 -265Q1627 -228 1627 -198Q1627 -167 1634 -131Q1641 -95 1657 -60Q1673 -15 1655 4Q1649 14 1639 13ZM2279 19Q2230 19 2201 -7Q2187 -18 2176 -33Q2160 -59 2156 -100Q2153 -141 2157 -171V-178Q2167 -258 2233 -320Q2299 -381 2378 -368Q2425 -366 2462 -346Q2500 -325 2504 -294L2505 -298L2506 -338L2510 -460L2511 -500Q2512 -507 2514 -532Q2516 -556 2517 -568Q2518 -579 2522 -598Q2525 -616 2530 -631Q2532 -650 2540 -698Q2549 -745 2549 -747Q2553 -776 2581 -785Q2597 -784 2616 -774Q2635 -765 2637 -753Q2647 -729 2651 -676L2650 -595Q2650 -558 2637 -450Q2634 -429 2618 -390Q2602 -351 2599 -330V-266L2606 -248L2625 -184Q2631 -160 2640 -138Q2649 -115 2663 -82Q2677 -50 2682 -39Q2684 -8 2669 4Q2665 10 2658 10Q2638 10 2615 -4Q2568 -51 2542 -162Q2503 -99 2486 -83Q2414 -9 2353 11Q2292 19 2279 19ZM2239 -146Q2231 -113 2253 -94Q2275 -75 2308 -75Q2331 -75 2347 -83Q2435 -128 2497 -278Q2495 -272 2482 -273Q2468 -274 2466 -274Q2394 -284 2340 -279Q2238 -227 2239 -146ZM2861 -292Q2887 -344 2920 -375Q2957 -412 3007 -417Q3056 -423 3100 -405Q3119 -386 3119 -374Q3119 -351 3115 -347Q3096 -328 3083 -328Q3082 -328 3068 -330Q3055 -332 3044 -333H3021Q2978 -327 2953 -298L2931 -270Q2906 -235 2900 -219Q2898 -214 2890 -195Q2881 -176 2880 -166Q2878 -107 2887 -77Q2892 -68 2893 -58Q2894 -47 2894 -40Q2893 -34 2888 -22Q2882 -9 2880 -5Q2877 -1 2869 13Q2860 23 2850 23Q2831 23 2814 4Q2796 -15 2787 -42L2786 -157Q2784 -196 2770 -337Q2766 -379 2770 -407Q2781 -429 2812 -431Q2826 -433 2836 -426Q2846 -419 2847 -404Q2848 -400 2850 -395Q2853 -390 2853 -387Q2853 -365 2856 -296ZM3169 -87Q3156 -140 3174 -192Q3193 -243 3232 -302Q3295 -384 3372 -409L3388 -412Q3411 -416 3424 -415Q3480 -413 3521 -381Q3562 -349 3565 -294Q3566 -241 3525 -196Q3484 -151 3435 -147Q3417 -140 3396 -140Q3345 -140 3290 -169L3260 -184Q3247 -158 3247 -144Q3258 -88 3308 -50Q3357 -11 3414 -15Q3448 -11 3505 -29L3534 -37Q3564 -49 3617 -53Q3641 -56 3644 -34V0Q3610 37 3563 40L3538 47Q3457 70 3419 68Q3339 73 3272 31Q3203 -5 3169 -87ZM3294 -240Q3318 -232 3323 -232Q3331 -228 3339 -225Q3347 -222 3358 -221Q3368 -220 3373 -220Q3378 -220 3392 -220Q3407 -220 3409 -220Q3431 -224 3454 -242Q3478 -261 3482 -281Q3491 -312 3435 -330L3417 -336Q3397 -336 3374 -322Q3352 -308 3342 -298Q3332 -289 3309 -265L3298 -247ZM3865 15Q3862 15 3852 16Q3843 16 3838 16Q3832 16 3825 14Q3818 12 3813 9Q3782 -9 3759 -66Q3749 -90 3744 -117Q3740 -144 3736 -176Q3733 -208 3729 -228L3725 -256Q3725 -257 3720 -272Q3715 -286 3715 -288Q3715 -294 3714 -306Q3712 -317 3712 -324Q3711 -331 3711 -340Q3711 -348 3712 -354Q3714 -360 3717 -363Q3735 -381 3773 -389Q3782 -390 3790 -386Q3799 -382 3811 -370Q3823 -359 3825 -357V-273V-180Q3827 -150 3835 -104Q3840 -97 3845 -97Q3855 -103 3864 -116Q3874 -130 3884 -148Q3895 -166 3901 -174L3906 -186Q3911 -204 3923 -230Q3935 -255 3942 -262Q395Line truncated
/>
<path
class="underline"
pathLength="1"
transform="translate(5735 150) scale(10)"
d="M-1.22 -2.11 C6.23 -1.03, 27.75 6.49, 42.64 6.86 C57.52 7.22, 73.22 0.66, 88.08 0.08 C102.93 -0.50, 117.37 3.19, 131.78 3.35 C146.19 3.51, 159.72 1.11, 174.54 1.04 C189.35 0.97, 205.99 3.16, 220.68 2.93 C235.36 2.70, 255.79 0.28, 262.65 -0.31"
/>
</svg>
</h1>
<p>There is nothing at this address.</p>
<a class="button" href="/">Open Excalidraw</a>
<nav aria-label="More from Excalidraw">
<a
href="https://plus.excalidraw.com?utm_source=excalidraw&amp;utm_medium=app&amp;utm_content=404"
>Excalidraw+</a
>
<span aria-hidden="true">•</span>
<a
href="https://plus.excalidraw.com/docs?utm_source=excalidraw&amp;utm_medium=app&amp;utm_content=404"
>Documentation</a
>
<span aria-hidden="true">•</span>
<a
href="https://plus.excalidraw.com/docs/mcp?utm_source=excalidraw&amp;utm_medium=app&amp;utm_content=404"
>MCP</a
>
<span aria-hidden="true">•</span>
<a href="https://github.com/excalidraw/cli">CLI</a>
</nav>
</main>
<!-- 100% privacy friendly analytics (same as the editor) -->
<script>
// only on excalidraw.com, not on previews or self-hosted builds
if (window.location.hostname === "excalidraw.com") {
var scriptEle = document.createElement("script");
scriptEle.src = "https://scripts.simpleanalyticscdn.com/latest.js";
scriptEle.async = true;
document.body.appendChild(scriptEle);
}
</script>
</body>
</html>
-9
View File
@@ -1,13 +1,4 @@
User-agent: Twitterbot
Disallow:
User-agent: facebookexternalhit
Disallow:
User-agent: *
Allow: /$
Allow: /
Allow: /sitemap.xml
Disallow: /
Sitemap: https://excalidraw.com/sitemap.xml
+8
View File
@@ -64,6 +64,14 @@
"destination": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor"
}
],
"rewrites": [
{
"source": "/excalidraw-plus-export",
"destination": "/index.html"
}
],
"framework": null,
"buildCommand": "yarn build",
"outputDirectory": "excalidraw-app/build",
"installCommand": "yarn install"
}