-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow STORYBOOK as env var #1724
Comments
How about this:
WDYT? |
@brillout - so basically all envs in .env.public are available everywhere? And STorybook gets a whitelabled everywhere as well? I mean this would solve this. For me it would be enough to whitelist |
I meant that
Is that a common practice? I ain't familiar with it. I'm slightly reluctant to have a |
@brillout I have seen people do this yes. But I have no fixed way of doing this. I mostly adjust to what the framework wants me to do. I just wasn't sure what you meant by adding a new config env.public
|
Ah, I see. I meant a new Vike setting: // vike.config.js
export default {
env: { public: ['STORYBOOK'] }
} (The As for |
Okay thank you! |
Pre-released as As for the rest, closing in favor of #1726. |
Description
I am getting this error here:
I know of the common prefix, however
STORYBOOK
is injected by the lib itself and I rather not make my own set up to detect if I run in storybook.The text was updated successfully, but these errors were encountered: