-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstackbit.config.ts
More file actions
28 lines (27 loc) · 796 Bytes
/
stackbit.config.ts
File metadata and controls
28 lines (27 loc) · 796 Bytes
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
import { defineStackbitConfig } from '@stackbit/types';
import { GitContentSource } from '@stackbit/cms-git';
import { allModels } from './.stackbit/models';
const config = defineStackbitConfig({
stackbitVersion: '~0.7.0',
ssgName: 'nextjs',
nodeVersion: '18',
contentSources: [
new GitContentSource({
rootPath: __dirname,
contentDirs: ['content'],
models: allModels,
assetsConfig: {
referenceType: 'static',
staticDir: 'public',
uploadDir: 'images',
publicPath: '/'
}
})
],
presetSource: {
type: 'files',
presetDirs: ['./.stackbit/presets']
},
styleObjectModelName: 'ThemeStyle'
});
export default config;