#Custom middleware file location?

2 messages · Page 1 of 1 (latest)

lilac thunder
#

Does the middleware.ts file have to be in the root directory, or is there any way to specify an alternate location for it?

carmine basalt
#

afaik it should always be in the same level of your pages dir