the frontend convention is panels.ts and layout.ts, not Router.tsx
The reference plugin named web/Router.tsx as the way to ship a frontend. Discovery checks for web/panels.ts and web/layout.ts by those exact names and refuses a web/ directory missing either — so anyone following the example would have written a plugin the platform rejects. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -9,7 +9,8 @@ import type { PluginManifest } from '@@/plugins/manifest';
|
||||
// api/router.ts exports `router`; mounted at /api/example
|
||||
// db/schema.ts tables, if it had any (every name prefixed `example_`)
|
||||
// sidecar/index.ts a process, if it needed one (.mjs instead means node)
|
||||
// web/Router.tsx a frontend, if it had one
|
||||
// web/panels.ts panels, if it had a frontend — REQUIRED with web/, and checked by name
|
||||
// web/layout.ts how they are arranged — also required with web/
|
||||
//
|
||||
// `appName` is not declared anywhere: it is the directory name, so the id cannot disagree with where the
|
||||
// code sits.
|
||||
|
||||
Reference in New Issue
Block a user