Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apps/editor/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ const nextConfig: NextConfig = {
logging: {
browserToTerminal: true,
},
// The scene store hands out `/editor/<id>` as the canonical project URL
// (`packages/mcp/src/storage/sqlite-scene-store.ts` `editorUrlForScene`), and
// the hosted product serves that path. This app names its route `/scene/[id]`,
// so every MCP-reported `editorUrl` 404s here.
//
// Rewrite rather than redirect: the browser path has to keep the `/editor/`
// prefix because client code parses the project id back out of it (see
// `packages/editor/src/components/ui/action-menu/view-toggles.tsx`, scan
// upload). `/scene/<id>` keeps working for the app's own links.
async rewrites() {
return [{ source: '/editor/:id', destination: '/scene/:id' }]
},
typescript: {
ignoreBuildErrors: true,
},
Expand Down
2 changes: 1 addition & 1 deletion apps/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"private": true,
"scripts": {
"dev": "dotenv -e ../../.env.local -- next dev --port ${PORT:-3002}",
"dev": "dotenv -e ../../.env.local -- next dev --hostname 0.0.0.0 --port 3002",
"build": "dotenv -e ../../.env.local -- next build",
"start": "next start",
"lint": "biome lint",
Expand Down