Skip to content
Merged
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
2 changes: 2 additions & 0 deletions apps/local/src/routes/plugins.$pluginId.$.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ function PluginRouteComponent() {
const { pluginId, _splat: rest } = Route.useParams();
const plugins = useClientPlugins();
const plugin = plugins.find((p) => p.id === pluginId);
// oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: TanStack Router represents not-found from components by throwing notFound()
if (!plugin) throw notFound();

const target = normalizePath(rest ?? "/");
const page = plugin.pages?.find((p) => normalizePath(p.path) === target);
// oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: TanStack Router represents not-found from components by throwing notFound()
if (!page) throw notFound();

const Component = page.component;
Expand Down
1 change: 1 addition & 0 deletions apps/local/src/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const hasFileExtension = (pathname: string): boolean => {

function collectStaticRoutes(dir: string, prefix = ""): Record<string, StaticHandler> {
const routes: Record<string, StaticHandler> = {};
// oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: filesystem route discovery is best-effort for optional built assets
try {
for (const entry of readdirSync(dir, { withFileTypes: true })) {
const fullPath = join(dir, entry.name);
Expand Down
1 change: 1 addition & 0 deletions apps/local/src/server/observability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const ErrorCaptureLive: Layer.Layer<ErrorCapture> = Layer.succeed(
const squashed = Cause.squash(cause);
console.error(
`[executor ${traceId}]`,
// oxlint-disable-next-line executor/no-instanceof-error -- boundary: console logger preserves native Error stack output
squashed instanceof Error ? squashed.stack ?? squashed : squashed,
);
console.error(`[executor ${traceId}] cause:`, Cause.pretty(cause));
Expand Down
Loading