fresh icon indicating copy to clipboard operation
fresh copied to clipboard

Bug: `_middleware.tsx` doesn't run before `_500.tsx` or `_error.tsx`

Open marvinhagemeister opened this issue 1 year ago • 1 comments

marvinhagemeister avatar Jul 03 '24 11:07 marvinhagemeister

After #2598 _middleware.ts runs in subfolders but not on the root folder

For example routes folder structure:

  • _middleware.ts
  • index.tsx
  • category/index.tsx

Then at /category/foo middleware runs at /foo it doesn't

BTW _layout is fixed correctly in #2598, but _middleware doesn't

NanoEdit avatar Aug 16 '24 10:08 NanoEdit

Maybe close this issue in favor of #2843? They seem to be duplicates

csvn avatar May 15 '25 08:05 csvn

Duplicate of https://github.com/denoland/fresh/issues/2843

marvinhagemeister avatar May 15 '25 09:05 marvinhagemeister