Client can't read node environment... changed storybook flag to public setting
This commit is contained in:
@@ -88,7 +88,7 @@
|
|||||||
{title: "Patreon", icon: "", href: "https://www.patreon.com/dicecloud"},
|
{title: "Patreon", icon: "", href: "https://www.patreon.com/dicecloud"},
|
||||||
{title: "Github", icon: "", href: "https://github.com/ThaumRystra/DiceCloud/tree/version-2"},
|
{title: "Github", icon: "", href: "https://github.com/ThaumRystra/DiceCloud/tree/version-2"},
|
||||||
];
|
];
|
||||||
if (process.env.SHOW_STORYBOOK || Meteor.isDevelopment){
|
if (Meteor.settings.public.showStorybook || Meteor.isDevelopment){
|
||||||
links.push({title: 'Component Previews', icon: "category", to: '/storybook/HealthBar'})
|
links.push({title: 'Component Previews', icon: "category", to: '/storybook/HealthBar'})
|
||||||
}
|
}
|
||||||
return links;
|
return links;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ RouterFactory.configure(factory => {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
// Storybook routes
|
// Storybook routes
|
||||||
if (process.env.SHOW_STORYBOOK || Meteor.isDevelopment){
|
if (Meteor.settings.public.showStorybook || Meteor.isDevelopment){
|
||||||
let StoryBook = require('/imports/ui/StoryBook.vue').default;
|
let StoryBook = require('/imports/ui/StoryBook.vue').default;
|
||||||
factory.addRoutes([
|
factory.addRoutes([
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user