Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
chore(storybook): added stories for taboule
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea committed Nov 15, 2022
1 parent f1612fd commit 9fd502c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions platforms/storybook/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -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*
8 changes: 7 additions & 1 deletion platforms/storybook/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion platforms/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 9fd502c

Please sign in to comment.