Repository navigation
Static web content: the host serves resources/public (the engines' static.html.folder) - #73
Merged
Merged
Conversation
…tatic.html.folder, served for the paths nothing else claims The host serves the files of static.html.folder (the Java engine's key) from resources/public next to the application file by default (the Rust engine's location, under the packs' resources rule) for any GET or HEAD that no host path, extension route or function claims: index.html for a folder, so a folder's index.html replaces the embedded landing page at /; the content type by extension from the engines' table; an ETag with 304 on If-None-Match; Cache-Control: no-cache for HTML; a hidden segment, a symbolic link out of the folder or anything that is not a regular file not found, in the engines' error shape. AppConfig.app_dir names the application file's folder. Docs, README and CHANGELOG updated; the 2026-08-24 "no static file service" note withdrawn. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ad and the decision Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
acn-ericlaw
added a commit
that referenced
this pull request
Nov 20, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The host serves static web content, the way both engines do:
static.html.folderis honoured as the Java engine's key; its default is the Rust engine's location,resources/publicnext to the application file, under the packs' resources rule (a relative value is under the application file's folder, never the working directory;file:prefixes an absolute path; an empty value turns the service off;AppConfig.app_dirnames the application file's folder).GETorHEADthat no host path, extension route or function claims is answered with the file the path names,index.htmlfor a folder, so a folder'sindex.htmlreplaces the embedded landing page at/while/info,/healthand the other host paths stay the host's.text/javascript,text/css,image/svg+xml, fonts, images;application/octet-streamotherwise), an ETag with 304 onIf-None-Match,Cache-Control: no-cachefor HTML so a redeployed page is revalidated while hashed assets stay cached...too), a symbolic link that leaves the folder, anything that is not a regular file. Not ported: the Java engine's static-content filter, itsno-cache-pageslist and itsmime.typessection.tests/test_static_content.py, one intests/test_config.py); README, the three guides and the CHANGELOG updated; the 2026-08-24 "no static file service by design" note withdrawn.Gates: ruff clean, basedpyright 0 errors, pytest 763 passed / 75 skipped. Driven live through
mercury-servewith a bundle inresources/public: the page withno-cacheand an ETag, the script astext/javascript, HEAD, 304, the actuator and the error shape untouched.Why
The 2026-11-20 sprint's first step. The agent-question app's React front-end will be built once in the Node.js pack and deployed into both packs'
extensions/agent-question/resources/public, served by each backend from its own origin (no CORS), the way the engines' Playground ships its web app. Neither pack could serve a file until now, unlike both engines. The Node twin is in lockstep: mercury-nodejs #138.🤖 Generated with Claude Code