The design language that makes your AI harness better at design.
JavaScript
Copy static assets with stable URLs to build output
Paul Bakausd9c14a44eb27
diff --git a/scripts/build.js b/scripts/build.jsindex 819c81d71..7e02848e6 100644--- a/scripts/build.js+++ b/scripts/build.js@@ -136,6 +136,16 @@ async function build() {// Bundle HTML, JS, and compiled CSS with Bunawait buildStaticSite();+ // Copy root-level static assets that need stable (unhashed) URLs+ const staticAssets = ['og-image.png', 'robots.txt', 'sitemap.xml', 'favicon.svg', 'apple-touch-icon.png'];+ const buildDir = path.join(ROOT_DIR, 'build');+ for (const asset of staticAssets) {+ const src = path.join(ROOT_DIR, 'public', asset);+ if (fs.existsSync(src)) {+ fs.copyFileSync(src, path.join(buildDir, asset));+ }+ }+// Read source filesconst { commands, skills } = readSourceFiles(ROOT_DIR);const patterns = readPatterns(ROOT_DIR);