Skip to content

Replace Static Slug Routing with File-Based Tool Routing#49

Open
Shalini828 wants to merge 2 commits intobetterbugs:developfrom
Shalini828:feature/auto-tool-discovery
Open

Replace Static Slug Routing with File-Based Tool Routing#49
Shalini828 wants to merge 2 commits intobetterbugs:developfrom
Shalini828:feature/auto-tool-discovery

Conversation

@Shalini828
Copy link

Summary:

This PR removes the static [slug]-based tool registry and migrates tool routing to a file-based structure under app/tools/.

Tools are now automatically registered via the filesystem instead of being manually maintained in a central constant file.

Changes :-

  • Removed app/[slug]/page.tsx
  • Removed dependency on DEVELOPMENTTOOLS
  • Added ToolLayout component
  • Migrated base64-encoder to /tools/base64-encoder
  • Verified 404 handling for invalid routes

Result :-
Improved scalability, modularity, and maintainability by leveraging Next.js file-based routing.

Fixes #47

@rishima17 rishima17 changed the base branch from main to develop March 1, 2026 12:57
@rishima17 rishima17 requested a review from SyedFahad7 March 1, 2026 12:57
@rishima17 rishima17 added bug Something isn't working apertre3.0 medium labels Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apertre3.0 bug Something isn't working medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace Static Tool Registry with File-Based Auto Tool Discovery

2 participants