Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: adf6804b37
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } else if (record.css) { | ||
| body = Buffer.from(transformCss(body.toString('utf8'), rewrite)); | ||
| } | ||
| body = await optimize(body, record.contentType, config.minify); |
There was a problem hiding this comment.
Update integrity hashes when modifying exported assets
When a source page uses integrity on a stylesheet, CSS URL rewriting changes the stylesheet bytes while transformHtml preserves the original integrity attribute. Enabling minify can cause the same mismatch for scripts. Browsers consequently reject these exported resources, breaking styling or functionality even though the export completes successfully. Recompute integrity metadata from the final exported bytes, or preserve the original bytes for integrity-protected resources.
Useful? React with 👍 / 👎.
| } catch { | ||
| return value; | ||
| } | ||
| if (!policy.allowed(resolved, asset)) return value; |
There was a problem hiding this comment.
Preserve resolved URLs for references outside the export scope
For a page containing <base href="https://cdn.example.com/"> and a relative asset such as src="image.png", leaving that CDN outside assetOrigins returns the original relative value here. However, transformHtml unconditionally removes the base element, so the exported page requests the image from the static site's directory instead of the CDN. This breaks remote resources that are supposed to remain external. During the final rewrite, preserve the resolved absolute URL for out-of-scope relative references, including their fragments.
Useful? React with 👍 / 👎.
Summary
Firekylin can now generate and publish a static snapshot through a standalone plugin, without core changes. Admin requests enqueue durable jobs; a separate worker handles crawling, ZIP creation and publication so long exports do not depend on an HTTP request staying open.
Validation
pnpm testwithFIREKYLIN_CORE_PATHandSTATIC_LIVE_TEST=1: 564 tests passed, including all 52 new plugin tests.git diff --checkpassed.Operational boundaries
Admin jobs require a shared persistent filesystem and a separate worker. Single-page updates reuse unrelated HTML; global theme, navigation or visibility changes require full generation. Remote adapters use mocked API/process tests, not real hosting accounts. S3/Bunny sync is non-atomic; SFTP uses a staged two-rename switch. JavaScript-dependent runtime APIs still need external services. No npm release or production deployment is included.