Fix .well-known

This commit is contained in:
Sofía Aritz 2025-05-12 21:10:15 +02:00
parent eaef940905
commit 7dac6c8e98
Signed by: sofia
GPG key ID: 5A1485B4CCCDDB4A

View file

@ -53,6 +53,7 @@ async function prepareManifest(assetsPath, log = console.log) {
if (!HASHED_ASSETS.includes(ext) || process.env.ELEVENTY_RUN_MODE === "serve") {
const rel = relative(assetsPath, absPath)
assetsManifest[rel] = rel
log(`[sofi-assets] Including un-hashed asset: '${relative(assetsPath, absPath)}'`)
continue;
}
@ -129,6 +130,7 @@ export default async function (eleventyConfig) {
const log = eleventyConfig.logger.log.bind(eleventyConfig.logger)
eleventyConfig.addPassthroughCopy({ "assets/robots.txt": "robots.txt" })
eleventyConfig.addPassthroughCopy({ "assets/.well-known": ".well-known" })
eleventyConfig.addWatchTarget("./assets/")
eleventyConfig.on("eleventy.before", async () => {