/
histoire.config.ts
40 lines (33 loc) · 846 Bytes
/
histoire.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { HstVue } from '@histoire/plugin-vue'
import { defaultColors, defineConfig } from 'histoire'
function getDocsHost(): string {
if (process.env.CONTEXT !== 'production' && process.env.DEPLOY_PRIME_URL) {
return new URL(process.env.DEPLOY_PRIME_URL).host.replace('-story', '-docs')
}
return 'sefirot.globalbrains.com'
}
export default defineConfig({
plugins: [
HstVue()
],
setupFile: 'stories/histoire.setup.ts',
theme: {
title: 'Sefirot',
colors: {
primary: defaultColors.neutral
}
},
backgroundPresets: [
{ label: 'Transparent', color: 'transparent' },
{ label: 'Light', color: '#fafafa' },
{ label: 'Dark', color: '#191919' }
],
defaultStoryProps: {
autoPropsDisabled: true
},
vite: {
define: {
__DOCS_HOST__: JSON.stringify(getDocsHost())
}
}
})