question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

With the 3.3.0 releases, it looks like --config-dir/-c is not being used anymore, but in favour SBCONFIG_CONFIG_DIR, is this likely to change once it goes out of alpha, or is it going to stay?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
skovycommented, Dec 18, 2017

I couldn’t find this issue with googling, but I had this same issue and using the ENV var seems to fix the issue.

https://github.com/storybooks/storybook/issues/2501

1reaction
josephchangcommented, Oct 9, 2017

I recently upgraded to 3.3.0-alpha.2 and encountered errors, and found that in server/config/utils.js, a new getConfigDir function had been added, which seems to ignore the command line option.

var getConfigDir = exports.getConfigDir = function getConfigDir() {
 return process.env.SBCONFIG_CONFIG_DIR || './.storybook';
};

I’m not sure what other regression errors it has caused, but for me, it no longer loaded preview-head.html into iframe.html.ejs. webpack.config(.prod).js use the above function to get the contents of that file, but it was looking in ./.storybook/preview-head.html without setting SBCONFIG_CONFIG_DIR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What ~/.config refers to and how to put files there?
config is a hidden folder within your home directory. Open up your file browser to your home folder, then find the option to...
Read more >
What is .config folder? - Ask Ubuntu
In your home folder ( ~ , usually /home/<username> ) the .config folder has lots of config files for many programs (some use...
Read more >
Config directory (confdir) - Puppet
Puppet's confdir is the main directory for the Puppet configuration. It contains configuration files and the SSL data. Location. The confdir is located...
Read more >
Configuration Files in Linux | Baeldung on Linux
Most global config files are located in the /etc directory. The /etc/ directory feels more like a filesystem and has many sub-directories, each ......
Read more >
\config Directory - Software AG Documentation
\config Directory. This directory contains configuration information for the package and its services, such as the properties.cnf file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found