-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstackbit.config.ts
More file actions
53 lines (52 loc) · 1.94 KB
/
Copy pathstackbit.config.ts
File metadata and controls
53 lines (52 loc) · 1.94 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
import { defineStackbitConfig } from '@stackbit/types';
import { GitContentSource } from '@stackbit/cms-git';
import { Page } from './src/_models/page';
import { MarketingHeroCoverImageWithCtas } from './src/_models/MarketingHeroCoverImageWithCtas';
import { FeatureSectionsCtaList } from './src/_models/FeatureSectionsCtaList';
import { FeatureSectionsIcons } from './src/_models/FeatureSectionsIcons';
import { FeatureSectionsCardList } from './src/_models/FeatureSectionsCardList';
import { PricingTable } from './src/_models/PricingTable';
import { FaqSectionsAccordion } from './src/_models/FaqSectionsAccordion';
import { ContactDefaultForm } from './src/_models/ContactDefaultForm';
export default defineStackbitConfig({
stackbitVersion: '~0.7.0',
ssgName: 'custom',
devCommand: './node_modules/.bin/eleventy && ./node_modules/.bin/tailwindcss -i src/tailwind.css -c tailwind.config.js -o _site/styles.css && ./node_modules/.bin/eleventy --serve --port {PORT} --incremental',
experimental: {
ssg: {
name: 'eleventy',
logPatterns: {
up: ['Server at']
}
}
},
useESM: true,
nodeVersion: '20',
contentSources: [
new GitContentSource({
rootPath: __dirname,
contentDirs: ['src'],
models: [
Page,
MarketingHeroCoverImageWithCtas,
FeatureSectionsCtaList,
FeatureSectionsIcons,
FeatureSectionsCardList,
PricingTable,
FaqSectionsAccordion,
ContactDefaultForm
],
assetsConfig: {
referenceType: 'static',
staticDir: 'public',
uploadDir: 'images',
publicPath: '/'
}
})
],
modelExtensions: [
{ name: 'Page', type: 'page', urlPath: '/{slug}' },
],
pagesDir: 'src',
sidebarButtons: []
});