Environment variables works with storybook v6.
git clone https://github.com/Luk-z/vite_ts_sb6_npm.git
cd vite_ts_sb6_npm
nvm use
# or nvm i
npm install
npm run storybook
Open browser at http://localhost:6006/, in the dev tools console search for process.env.STORYBOOK_TEST =
info log.