Client can't read node environment... changed storybook flag to public setting

This commit is contained in:
Stefan Zermatten
2019-08-06 10:13:55 +02:00
parent a58def26d1
commit 56f3af3c4b
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@
{title: "Patreon", icon: "", href: "https://www.patreon.com/dicecloud"},
{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'})
}
return links;

View File

@@ -55,7 +55,7 @@ RouterFactory.configure(factory => {
},
]);
// Storybook routes
if (process.env.SHOW_STORYBOOK || Meteor.isDevelopment){
if (Meteor.settings.public.showStorybook || Meteor.isDevelopment){
let StoryBook = require('/imports/ui/StoryBook.vue').default;
factory.addRoutes([
{