diff --git a/packages/random/index.js b/packages/random/index.js index fd0658d..3a60223 100644 --- a/packages/random/index.js +++ b/packages/random/index.js @@ -31,7 +31,7 @@ const plugin = { if (request.slug && request.realRoute) return `/random/${request.realRoute}/`; return `/random/`; }, - all: async () => [{ slug: '/random/' }], + all: async () => (notProduction ? [{ slug: '/random/' }] : []), }, },