mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-11-20 21:23:22 +03:00
* 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
78 lines
1.6 KiB
JSON
78 lines
1.6 KiB
JSON
{
|
|
"headers": [
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "https://excalidraw.com"
|
|
},
|
|
{
|
|
"key": "X-Content-Type-Options",
|
|
"value": "nosniff"
|
|
},
|
|
{
|
|
"key": "Feature-Policy",
|
|
"value": "*"
|
|
},
|
|
{
|
|
"key": "Referrer-Policy",
|
|
"value": "origin"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/:file*.woff2",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "https://excalidraw.com"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/(Virgil|Cascadia|Assistant-Regular).woff2",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000"
|
|
},
|
|
{
|
|
"key": "Access-Control-Allow-Origin",
|
|
"value": "*"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"redirects": [
|
|
{
|
|
"source": "/webex/:match*",
|
|
"destination": "https://for-webex.excalidraw.com"
|
|
},
|
|
{
|
|
"source": "/:path*",
|
|
"has": [
|
|
{
|
|
"type": "host",
|
|
"value": "vscode.excalidraw.com"
|
|
}
|
|
],
|
|
"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"
|
|
}
|