Revalidate middleware functions
Unanswered
Rhinelander posted this in #help-forum
RhinelanderOP
Is it possible to revalidate the middleware? We have a JSON file that is accessed by the middleware, and when the middleware is built at deploy time the contents of the JSON is loaded. If the JSON is changed the middleware will still be using the old version as that what was loaded at build time. What I'm trying to do is somehow rebuild the middleware so it will use the updated JSON file.
Is it possible to rebuild the middleware using the revalidate path?
Is it possible to rebuild the middleware using the revalidate path?
1 Reply
RhinelanderOP
Anyone know if you can use the revalidate endpoint (or similar) to rebuild middleware? I'm happy if the answer is "that can't be done, just rebuild your site", but if there is a way I'd be even happier!