Skip to content

Disable Astro Cloudflare sessions to avoid prod KV provisioning#551

Merged
riderx merged 1 commit intomainfrom
codex/fix-prod-build-failure
Apr 2, 2026
Merged

Disable Astro Cloudflare sessions to avoid prod KV provisioning#551
riderx merged 1 commit intomainfrom
codex/fix-prod-build-failure

Conversation

@riderx
Copy link
Copy Markdown
Member

@riderx riderx commented Apr 2, 2026

Summary

  • configure Astro to use the null session driver in the Cloudflare deployment
  • prevent Astro from auto-enabling Cloudflare KV-backed sessions in production
  • avoid the SESSION KV binding/provisioning path that was breaking deploys

Testing

  • Not run (not requested)

Summary by CodeRabbit

  • Chores
    • Updated application session configuration settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 2, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

The astro.config.mjs file was updated to import sessionDrivers from the Astro configuration module and add a new session configuration block that sets the driver to sessionDrivers.null().

Changes

Cohort / File(s) Summary
Session Configuration
astro.config.mjs
Added sessionDrivers import from astro/config and configured session driver to use null driver in the defineConfig() object.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A config hop, so light and small,
Sessions set to null, that's all,
No drivers here, just silence pure—
The simplest change, I do assure! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: disabling Astro Cloudflare sessions by configuring the null session driver in astro.config.mjs to prevent KV provisioning issues.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-prod-build-failure

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 2, 2026

@riderx riderx merged commit 043f29f into main Apr 2, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant