Skip to content

Instantly share code, notes, and snippets.

@julrich
Created February 4, 2026 10:11
Show Gist options
  • Select an option

  • Save julrich/a3f18e206f42c6e07c14ccd75d7387e0 to your computer and use it in GitHub Desktop.

Select an option

Save julrich/a3f18e206f42c6e07c14ccd75d7387e0 to your computer and use it in GitHub Desktop.
Stackbit config export
export default defineStackbitConfig({
stackbitVersion: "~0.6.0",
ssgName: "custom",
devCommand: [
"npm run _assemble:build:tokens",
"npx @11ty/eleventy --serve --port={PORT} --incremental --config=scripts/stackbit.eleventy.js",
].join(" && "),
experimental: {
ssg: {
name: "eleventy",
passthrough: ["/.11ty/**"],
logPatterns: {
up: ["[11ty] Server at"],
},
},
},
customContentReload: true,
nodeVersion: "20",
contentSources: [
new GitContentSource({
rootPath: __dirname,
contentDirs: ["content"],
models: [
...(models.components as Model[]),
header as Model,
footer as Model,
fallback_header as Model,
fallback_footer as Model,
fallback_united_header as Model,
fallback_united_footer as Model,
],
assetsConfig: {
referenceType: "static",
staticDir: "public",
uploadDir: "assets",
publicPath: "/",
},
}),
],
presetSource: {
type: "files",
presetDirs: [".stackbit/presets/generated"],
},
viewports: [
{
label: "Mobile Small",
size: { width: 360, height: 780 },
},
{
label: "Mobile Large",
size: { width: 430, height: 932 },
},
{
label: "Tablet Portrait",
size: { width: 810, height: 1080 },
},
{
label: "Tablet Landscape",
size: { width: 1080, height: 810 },
},
{
label: "Laptop",
size: { width: 1536, height: 864 },
},
{
label: "Desktop",
size: { width: 1920, height: 1080 },
},
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment