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

Commit 9fd502c

Browse files
committed
chore(storybook): added stories for taboule
1 parent f1612fd commit 9fd502c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

platforms/storybook/.env.development

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ TK_FE_URL=http://localhost:1314
22
TK_BE_URL=http://localhost:14000/api
33
YT_FE_URL=http://localhost:1313
44
YT_BE_URL=http://localhost:9000/api
5+
DEBUG=@trex*

platforms/storybook/.storybook/main.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ const TSConfigPathsWebpackPlugin = require('tsconfig-paths-webpack-plugin');
33
const version = require('../package.json').version;
44
const dotenv = require('dotenv');
55

6+
const DOTENV_CONFIG_PATH = process.env.DOTENV_CONFIG_PATH
7+
? process.env.DOTENV_CONFIG_PATH
8+
: process.env.NODE_ENV === 'production'
9+
? '.env'
10+
: '.env.development';
11+
612
const env = dotenv.config({
7-
path: path.resolve(process.cwd(), process.env.DOTENV_CONFIG_PATH ?? '.env'),
13+
path: path.resolve(process.cwd(), DOTENV_CONFIG_PATH),
814
}).parsed;
915

1016
function injectEnv(definitions) {

platforms/storybook/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"start": "start-storybook -p 6006",
7-
"dev":"DOTENV_CONFIG_PATH=.env.development start-storybook -p 6006",
7+
"dev": "DOTENV_CONFIG_PATH=.env.development start-storybook -p 6006",
88
"build": "build-storybook -o build",
99
"lint": "eslint ./src"
1010
},

0 commit comments

Comments
 (0)