@elderjs/plugin-random
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -34,3 +34,3 @@ const notProduction = process.env.NODE_ENV !== 'production'; | ||
}, | ||
all: async () => (notProduction ? [{ slug: '/random/' }] : []), | ||
all: async ({ settings }) => (settings.server && notProduction ? [{ slug: '/random/' }] : []), | ||
}, | ||
@@ -37,0 +37,0 @@ }, |
{ | ||
"name": "@elderjs/plugin-random", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Easily preview a random page of a route by visiting a single url. This plugin should be used exclusively for development.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
6842