diff --git a/next.config.js b/next.config.js index 5e40353edf..62b15643fa 100644 --- a/next.config.js +++ b/next.config.js @@ -10,7 +10,7 @@ const withTM = require("next-transpile-modules")([ module.exports = withTM({ async rewrites() { return { - beforeFiles: [ + afterFiles: [ // This redirects requests recieved at / the root to the /api/ folder. { source: "/v:version/:rest*",