Skip to content

Commit

Permalink
fix: πŸ› no requests on production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nickreese committed Jun 11, 2021
1 parent 0858b43 commit 38c4880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/random/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/' }] : []),
},
},

Expand Down

0 comments on commit 38c4880

Please sign in to comment.