diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.ts b/src/config.ts index 3fdcf24..b0ad1b0 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,9 +6,13 @@ export default function (eleventyConfig: any) { eleventyConfig.addPassthroughCopy({ "./src/static/": "/", }); + + // hook in configured build time for GH action to update eleventyConfig.addGlobalData("buildTimeEncoded", () => { return getTimestamp(Number(BuildInfo.version)); }); + + // ensure eleventy marks this config as watched, since it's typescript eleventyConfig.addWatchTarget("./src/config.ts"); return { |
