[READ-ONLY] Mirror of https://github.com/improsocial/impro An extensible Bluesky client for web impro.social
6

Configure Feed

Select the types of activity you want to include in your feed.

Move plugin sandbox

Grace Kind (Jul 11, 2026, 1:11 AM -0500) d90d6acb 7c55bb83

+11 -7
+10 -6
eleventy.config.js
··· 5 5 import path from "node:path"; 6 6 import { pathToFileURL } from "node:url"; 7 7 8 - async function transformGlob(pattern, replacer) { 8 + async function transformFiles(filePaths, replacer) { 9 9 await Promise.all( 10 - fs.globSync(pattern).map(async (filePath) => { 10 + filePaths.map(async (filePath) => { 11 11 const content = await fs.promises.readFile(filePath, "utf-8"); 12 12 const updated = await replacer(content); 13 13 if (content !== updated) await fs.promises.writeFile(filePath, updated); ··· 23 23 eleventyConfig.addPassthroughCopy("src/img"); 24 24 eleventyConfig.addPassthroughCopy("src/manifest.json"); 25 25 eleventyConfig.addPassthroughCopy("src/_headers"); 26 - eleventyConfig.addPassthroughCopy("src/plugins"); 26 + eleventyConfig.addPassthroughCopy("src/plugin-sandbox.html"); 27 27 28 28 // Prevent sandbox from being treated as a template 29 - eleventyConfig.ignores.add("src/plugins/sandbox.html"); 29 + eleventyConfig.ignores.add("src/plugin-sandbox.html"); 30 30 31 31 const isDev = process.env.NODE_ENV !== "production"; 32 32 ··· 113 113 }); 114 114 115 115 // Cache busting via content-hashed filenames 116 - eleventyConfig.on("eleventy.after", async ({ dir }) => { 116 + eleventyConfig.on("eleventy.after", async ({ dir, results }) => { 117 117 if (isDev) return; 118 + 119 + const htmlFiles = results 120 + .map((result) => result.outputPath) 121 + .filter((outputPath) => outputPath.endsWith(".html")); 118 122 119 123 const buildBaseUrl = pathToFileURL(path.resolve(dir.output) + path.sep); 120 124 ··· 139 143 ); 140 144 141 145 const importMapTag = `<script type="importmap">${JSON.stringify({ imports })}</script>`; 142 - await transformGlob(`${dir.output}/*.html`, async (content) => { 146 + await transformFiles(htmlFiles, async (content) => { 143 147 // linkHtml crawls the un-hashed files on disk, so it must run before renaming 144 148 const linked = await linkHtml(content, { 145 149 baseUrl: buildBaseUrl,
+1 -1
package.json
··· 1 1 { 2 2 "name": "impro", 3 - "version": "0.17.133", 3 + "version": "0.17.134", 4 4 "type": "module", 5 5 "scripts": { 6 6 "start": "rm -rf \"${BUILD_DIR:-build}\" && NODE_ENV=development eleventy --serve",