From ef30aad1f77ea66d2d76f97153ac7a68bc92928f Mon Sep 17 00:00:00 2001 From: giteaadmin Date: Mon, 1 Sep 2025 23:21:13 -0400 Subject: [PATCH] fix: eleventy settings --- .eleventy.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 6270b79..6e10ce0 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -4,14 +4,17 @@ const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); module.exports = function(eleventyConfig) { + // Add a global data property for the build time + eleventyConfig.addGlobalData("buildTime", () => new Date().getTime()); + eleventyConfig.addPassthroughCopy("src/js"); eleventyConfig.addPassthroughCopy("src/resume"); eleventyConfig.addPassthroughCopy("src/assets/images"); eleventyConfig.addPassthroughCopy({ "src/favicon" : "/" } ); eleventyConfig.addPassthroughCopy({ 'src/robots.txt': '/robots.txt' }); eleventyConfig.addPassthroughCopy({ 'src/sitemap.xml': '/sitemap.xml' }); - eleventyConfig.addPassthroughCopy("./src/css/style.css"); - eleventyConfig.addPassthroughCopy("./src/css/prism-tomorrow.css"); + eleventyConfig.addPassthroughCopy("src/css/style.css"); + eleventyConfig.addPassthroughCopy("src/css/prism-tomorrow.css"); eleventyConfig.addPlugin(syntaxHighlight); @@ -54,7 +57,7 @@ module.exports = function(eleventyConfig) { middleware: [ createProxyMiddleware({ pathFilter: '/api/**', - target: 'http://api:3000', // The 'api' service container + target: 'http://localhost:3000', // The local API server changeOrigin: true, }), ],