To prevent having to rewrite the middleware after a regeneration the withMiddleware option also accepts a path to a file with a default export.
If the merged option does not float your boat i can split this into two options with a middleware key overriding the withMiddleware option if set and only accepting a path to the respective file.
P.S.: Sorry for the autoformatting, it seems VS Code did not register the .prettierrc.
Description
To prevent having to rewrite the middleware after a regeneration the
withMiddleware
option also accepts a path to a file with a default export.If the merged option does not float your boat i can split this into two options with a
middleware
key overriding thewithMiddleware
option if set and only accepting a path to the respective file.P.S.: Sorry for the autoformatting, it seems VS Code did not register the
.prettierrc
.