storybook/docs/_snippets/storybook-read-environment-variables.md
2024-06-13 17:53:08 +01:00

308 B

console.log(process.env.STORYBOOK_THEME);
console.log(process.env.STORYBOOK_DATA_KEY);
console.log(import.meta.env.STORYBOOK_THEME);
console.log(import.meta.env.STORYBOOK_DATA_KEY);