This commit is contained in:
2026-03-31 16:38:22 -07:00
commit 38940436a7
2112 changed files with 376929 additions and 0 deletions

View File

@ -0,0 +1,16 @@
function isUsingEleventyDevServer(config) {
return (
!config.serverOptions.module || config.serverOptions.module === "@11ty/eleventy-dev-server"
);
}
// Config opt-out via serverPassthroughCopyBehavior
// False when other server is used
// False when runMode is "build" or "watch"
export default function (config, runMode) {
return (
config.serverPassthroughCopyBehavior === "passthrough" &&
isUsingEleventyDevServer(config) &&
runMode === "serve"
);
}