Config#

The configuration used by Vitro must be in a file named vitro.config.js with an object as its module.exports

This is what the default configuration looks like

js
1
// vitro.config.js
2
3
/** @type {import('@vitro/cli').VitroConfig} */
4
module.exports = {
5
globs: ['./**/*.vitro.jsx'], // globs to search for stories files
6
ignore: [], // add directories to ignore when searching for stories files
7
basePath: '/' // deployment base path
8
// to enable the click to source feature in prod
9
links: {
10
github: { // or gitlab
11
url: 'https://github.com/remorses/vitro',
12
branch: 'master',
13
path: 'examples', // or just omit if vitro root is root of the repo
14
},
15
}
16
}
Config