Skip to content

Commit 95970c0

Browse files
refactor: move router config to stx.config.ts, remove @stxRouter directive
Router container is now configured via stx.config.ts router.container instead of @stxRouter('main') directive in the layout. The framework injects the router and its config automatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0be539f commit 95970c0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/devtools/pages/layouts/default.stx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
</div>
7474

7575
@stack('scripts')
76-
@stxRouter('main')
7776

7877
<style>
7978
.sidebar.collapsed { width: 56px !important; }

packages/devtools/stx.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ export default {
2020
bodyClass: 'bg-[#0a0a0f] text-zinc-50 leading-relaxed min-h-screen',
2121
},
2222
},
23+
router: {
24+
container: 'main',
25+
},
2326
apiRoutes,
2427
}

0 commit comments

Comments
 (0)