solidjs / solidjs/solid-start

[Feature?]: File-based routing for middlewares

Open
#1,860 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement file routes
Dominant language
TypeScript
Stars
5.9k
Forks
426
Avg merge
1d 3h
Merged PRs (30d)
11

Description

Duplicates
  • I have searched the existing issues
Latest version
  • I have tested the latest version
Summary 💡

Middlewares that run only on a given route, with file-based routing. The file rules would be similar to those of a layout that works on all routes of a given directory.

A good example can be seen in the Fresh framework, this is a good reference of the feature:

https://fresh.deno.dev/docs/concepts/middleware

Examples 🌈

No response

Motivation 🔦

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Fresh middleware documentation linked in the issue, then locate SolidStart's existing file-based routing and layout handling entry points. Define how route-scoped middleware should be discovered and composed, and verify that middleware files apply only to the intended routes without changing broader layout behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.