From 9fd502ce6895cee68642055897ca894de595f0e9 Mon Sep 17 00:00:00 2001 From: ascariandrea Date: Tue, 15 Nov 2022 11:00:36 +0100 Subject: [PATCH] chore(storybook): added stories for taboule --- platforms/storybook/.env.development | 1 + platforms/storybook/.storybook/main.js | 8 +++++++- platforms/storybook/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/platforms/storybook/.env.development b/platforms/storybook/.env.development index a331830cd..1db7baa5d 100644 --- a/platforms/storybook/.env.development +++ b/platforms/storybook/.env.development @@ -2,3 +2,4 @@ TK_FE_URL=http://localhost:1314 TK_BE_URL=http://localhost:14000/api YT_FE_URL=http://localhost:1313 YT_BE_URL=http://localhost:9000/api +DEBUG=@trex* diff --git a/platforms/storybook/.storybook/main.js b/platforms/storybook/.storybook/main.js index 8e15c3e96..22c6d638c 100644 --- a/platforms/storybook/.storybook/main.js +++ b/platforms/storybook/.storybook/main.js @@ -3,8 +3,14 @@ const TSConfigPathsWebpackPlugin = require('tsconfig-paths-webpack-plugin'); const version = require('../package.json').version; const dotenv = require('dotenv'); +const DOTENV_CONFIG_PATH = process.env.DOTENV_CONFIG_PATH + ? process.env.DOTENV_CONFIG_PATH + : process.env.NODE_ENV === 'production' + ? '.env' + : '.env.development'; + const env = dotenv.config({ - path: path.resolve(process.cwd(), process.env.DOTENV_CONFIG_PATH ?? '.env'), + path: path.resolve(process.cwd(), DOTENV_CONFIG_PATH), }).parsed; function injectEnv(definitions) { diff --git a/platforms/storybook/package.json b/platforms/storybook/package.json index cf57c7822..29e466e7c 100644 --- a/platforms/storybook/package.json +++ b/platforms/storybook/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "start": "start-storybook -p 6006", - "dev":"DOTENV_CONFIG_PATH=.env.development start-storybook -p 6006", + "dev": "DOTENV_CONFIG_PATH=.env.development start-storybook -p 6006", "build": "build-storybook -o build", "lint": "eslint ./src" },