AIToday
AI Coding AssistantsZenn AI/MLPublished: Oct 12, 2026, 10:00 JST

Developer drops all CDNs from Claude Code-built site, keeps Python only

Developer drops all CDNs from Claude Code-built site, keeps Python only

3 Key Points

  1. What happened

    A developer building a small business site with Claude Code and Python alone removed all CDN links and npm dependencies, after root-absolute links broke every page when opened locally via file://, and the build now catches such links automatically.

  2. Why it matters

    Because the local preview and the published version are generated into two separate folders, a single root-absolute link would block all local checking, so the build enforces the rule with no exceptions to keep future AI-written articles from copying the pattern.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The developer's site is written entirely in Python and Claude Code, with no CDN, npm, or JavaScript framework. This is not just a stylistic preference: root-absolute paths break when pages are opened locally from file://, and the developer checks a local copy before publishing. To prevent this, the build script rejects root-absolute links without exception, and also checks for broken links, tag mismatches, and missing alt attributes.

Product pages are generated from a separate CSV ledger, with only rows marked as public used. A subtle issue arose because the ledger is edited in Excel, which adds a BOM that breaks the column header — the script now reads with utf-8-sig to handle this. The sitemap's lastmod dates are now derived from each page's HTML hash, so only changed pages get today's date; pages older than the stored record get no lastmod line rather than a guessed date.

FAQ
What did the developer remove from the site?
All CDN links and npm packages were removed. The site is generated by a single Python script, with no JavaScript framework.
Why did root-absolute links cause a problem?
When pages are opened locally with file://, a path starting with / points to the drive root, so no links connect. The site is checked locally before publishing, so the build now rejects any root-absolute link with no exceptions.
How are product pages built?
Product pages are generated from a CSV ledger. Of its 22 rows, only the 17 marked as public are used as of 2026-10-02.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleBroadcom: ASIC revenue to double to $115 billion next year