-
Notifications
You must be signed in to change notification settings - Fork 0
/
stackbit.config.js
39 lines (37 loc) · 1.28 KB
/
stackbit.config.js
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
import { GitContentSource } from '@stackbit/cms-git';
import { Button } from './.stackbit/models/Button';
import { Card } from './.stackbit/models/Card';
import { Page } from './.stackbit/models/Page';
import { CardGridSection } from './.stackbit/models/CardGridSection';
import { FooterConfig } from './.stackbit/models/FooterConfig';
import { HeroSection } from './.stackbit/models/HeroSection';
import { SiteConfig } from './.stackbit/models/SiteConfig';
export default sbConfig = {
stackbitVersion: '~0.6.0',
ssgName: 'custom',
devCommand: 'npx @11ty/eleventy --serve --port={PORT} --incremental',
experimental: {
ssg: {
name: 'eleventy',
passthrough: ['/.11ty/**'],
logPatterns: {
up: ['[11ty] Server at']
}
}
},
customContentReload: true,
nodeVersion: '20',
contentSources: [
new GitContentSource({
rootPath: __dirname,
contentDirs: ['content'],
models: [Button, Card, Page, CardGridSection, FooterConfig, HeroSection, SiteConfig],
assetsConfig: {
referenceType: 'static',
staticDir: 'public',
uploadDir: 'assets',
publicPath: '/'
}
})
],
};