From ac976af3c30f30311310e79e1455c30b9009be28 Mon Sep 17 00:00:00 2001 From: MarketDataApp Date: Tue, 24 Feb 2026 15:23:47 -0300 Subject: [PATCH 1/5] ci: add production routes to Worker --- worker/wrangler.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker/wrangler.toml b/worker/wrangler.toml index e661729..67089d1 100644 --- a/worker/wrangler.toml +++ b/worker/wrangler.toml @@ -5,4 +5,6 @@ compatibility_date = "2024-01-01" routes = [ { pattern = "www.marketdata.app/docs-staging", zone_name = "marketdata.app" }, { pattern = "www.marketdata.app/docs-staging/*", zone_name = "marketdata.app" }, + { pattern = "www.marketdata.app/docs", zone_name = "marketdata.app" }, + { pattern = "www.marketdata.app/docs/*", zone_name = "marketdata.app" }, ] From 4a4b6b931c167362c84f6f3665cc77b1681ae93a Mon Sep 17 00:00:00 2001 From: MarketDataApp Date: Tue, 24 Feb 2026 15:30:41 -0300 Subject: [PATCH 2/5] chore: remove robots.txt from git tracking --- static/robots.txt | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 static/robots.txt diff --git a/static/robots.txt b/static/robots.txt deleted file mode 100644 index 1f53798..0000000 --- a/static/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / From 52ab498fed968fceee36307bf64c879ce57df34e Mon Sep 17 00:00:00 2001 From: MarketDataApp Date: Tue, 24 Feb 2026 15:31:53 -0300 Subject: [PATCH 3/5] seo: add noindex to staging builds --- docusaurus.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index 4d873b8..a563767 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -18,6 +18,7 @@ const config = { : "https://www.marketdata.app/", baseUrl: process.env.PROD == "true" ? "/docs/" : "/docs-staging/", + noIndex: process.env.PROD !== "true", onBrokenLinks: "ignore", onBrokenMarkdownLinks: "warn", favicon: "img/favicon.ico", From 6fa856330f9e3c5d2f531df9f949ec6922823134 Mon Sep 17 00:00:00 2001 From: MarketDataApp Date: Tue, 24 Feb 2026 15:42:31 -0300 Subject: [PATCH 4/5] perf: add aggressive cache headers for static assets --- .github/workflows/deploy-docs.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index ad111a4..a380f8e 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -51,6 +51,21 @@ jobs: mv build-raw/* "build/${BASE_URL}/" rm -rf build-raw + - name: Generate cache headers + env: + BASE_URL: ${{ steps.env.outputs.base_url }} + run: | + printf '%s\n' \ + "/${BASE_URL}/assets/*" \ + " Cache-Control: public, max-age=31536000, immutable" \ + "" \ + "/${BASE_URL}/img/*" \ + " Cache-Control: public, max-age=2592000" \ + "" \ + "/${BASE_URL}/*.js" \ + " Cache-Control: public, max-age=31536000, immutable" \ + > build/_headers + - name: Deploy to Cloudflare Pages uses: cloudflare/wrangler-action@v3 with: From 2bac38911215cc195578a4cbf5fc56d0ac9fa126 Mon Sep 17 00:00:00 2001 From: MarketDataApp Date: Tue, 24 Feb 2026 15:49:54 -0300 Subject: [PATCH 5/5] perf: enable edge caching for Worker subrequests --- worker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/index.js b/worker/index.js index 5036fa0..2d0a57f 100644 --- a/worker/index.js +++ b/worker/index.js @@ -64,7 +64,7 @@ async function handleRequest(request) { for (const route of ROUTES) { if (matchesRoute(url.pathname, route.prefix)) { url.hostname = route.target; - return fetch(new Request(url, request)); + return fetch(new Request(url, request), { cf: { cacheEverything: true } }); } }