René's URL Explorer Experiment


Title: Astro: `astro preview` fails after `astro build` in Void apps, and dev restarts can drop the trigger middleware · Issue #419 · voidzero-dev/void · GitHub

Open Graph Title: Astro: `astro preview` fails after `astro build` in Void apps, and dev restarts can drop the trigger middleware · Issue #419 · voidzero-dev/void

X Title: Astro: `astro preview` fails after `astro build` in Void apps, and dev restarts can drop the trigger middleware · Issue #419 · voidzero-dev/void

Description: Problem a. astro preview cannot find the build In an Astro app with void.config.ts: astro build astro preview [ERROR] [@astrojs/cloudflare] No build output found. Run `astro build` before running `astro preview`. The build did write its ...

Open Graph Description: Problem a. astro preview cannot find the build In an Astro app with void.config.ts: astro build astro preview [ERROR] [@astrojs/cloudflare] No build output found. Run `astro build` before running `...

X Description: Problem a. astro preview cannot find the build In an Astro app with void.config.ts: astro build astro preview [ERROR] [@astrojs/cloudflare] No build output found. Run `astro build` before running `...

Opengraph URL: https://github.com/voidzero-dev/void/issues/419

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Astro: `astro preview` fails after `astro build` in Void apps, and dev restarts can drop the trigger middleware","articleBody":"## Problem\n\n### a. `astro preview` cannot find the build\n\nIn an Astro app with `void.config.ts`:\n\n```sh\nastro build\nastro preview\n```\n\n```\n[ERROR] [@astrojs/cloudflare] No build output found. Run `astro build` before running `astro preview`.\n```\n\nThe build did write its output. On exit, Void moves Wrangler's deploy pointer `.wrangler/deploy/config.json` to `.void/`. Void puts it back only when its own Vite plugin runs in preview. Astro's adapter checks the pointer first, and it starts its preview server with `configFile: false`, so Void's plugin never runs there.\n\n```\nastro build ── closeBundle ── on exit: move .wrangler/deploy/config.json to .void/\nastro preview ── adapter: existsSync(.wrangler/deploy/config.json)? no ── \"No build output found\"\n                 (Void's restore runs only in a Vite preview that loads Void's plugin)\n```\n\nWorkaround: run the build with `VOID_CLOUDFLARE_DEPLOY_BUILD=1`. Void's own Astro integration test does this.\n\n### b. Astro's update check restarts `astro dev` right after \"ready\" (upstream)\n\nWhen Astro's update check is due (a fresh `.astro/` folder, or 12 days since the last check, and not in CI), `astro dev` restarts itself just after it prints \"ready\":\n\n```\n astro  v7.3.7 ready in 3531 ms\n...\n03:01:28 Configuration file updated. Restarting...\n```\n\nThe check writes `.astro/settings.json`. The file watcher reports an `add` and a `change`, and Astro's one-time \"ignore the next preferences reload\" flag covers only the first. A request during the restart fails. This is an Astro bug, not a Void bug. Workaround: `ASTRO_DISABLE_UPDATE_CHECK=true`.\n\n### c. After a dev restart, the dev trigger middleware may be removed (unverified)\n\nAfter the restart in (b), Void logged:\n\n```\n[void] Astro middleware already exists. To enable /__void/scheduled and /__void/queue,\n       add the Void dev-trigger middleware to your existing onRequest sequence.\n```\n\nVoid had written `src/middleware.ts` itself at the first start. The new plugin instance sees that file, warns, and does not take ownership. The old instance removes the file when its server closes. If that happens, `/__void/scheduled` and `/__void/queue` stop working until `astro dev` restarts. **Only the warning was seen; the removal was not checked.**\n\n## Repro\n\n- a. Astro app with `void.config.ts` and the Cloudflare adapter: `astro build`, then `astro preview`.\n- b. Delete `.astro/`, run `astro dev` outside CI, and watch for \"Configuration file updated. Restarting...\" right after \"ready\".\n- c. After (b), check whether `src/middleware.ts` still exists, and POST to `/__void/scheduled` with the dev trigger token.\n\n## Cause\n\n- a. `packages/void/src/index.ts:125-143`: for Astro, `closeBundle` schedules the pointer move on process exit (`:132-136`). The restore runs only in the plugin's `config` hook in preview (`:114-123`). `@astrojs/cloudflare` 14.3.4 `dist/entrypoints/preview.js:21-25` checks the pointer before it calls Vite's `preview()` with `configFile: false`. Same code on main.\n- b. Astro 7.3.7 `dist/core/dev/update-check.js` (12-day interval, `ASTRO_DISABLE_UPDATE_CHECK`) and `dist/core/dev/restart.js:34-36` (one-time ignore flag).\n- c. `packages/void/src/plugin-framework-triggers.ts:577-608`: `ensureFile` warns when the file exists (`:580`), and `cleanup` removes the file only in the instance that wrote it, on `httpServer` close (`:607`). Vite's `restartServer` creates the new server, then closes the old one. Same code on main.\n\n## Suggested fix\n\n- a. Do not move the pointer after an Astro build. Or restore it from a hook that `astro preview` runs, for example an Astro integration hook.\n- b. Report upstream. Optionally mention `ASTRO_DISABLE_UPDATE_CHECK=true` in the Astro troubleshooting docs.\n- c. Make the middleware file's ownership survive a restart, for example mark the file Void wrote with a header comment and treat a marked file as Void's own. First check that the removal happens.\n\n## Evidence\n\n- a. Seen in a run of the Astro build-and-preview integration test that #413 adds, before the test set `VOID_CLOUDFLARE_DEPLOY_BUILD=1`. Code read at main and the head of #413.\n- b. Seen in a dev log: `.astro/settings.json` reported as `add` then `change`, then the restart. Astro source read.\n- c. Only the warning was seen in the same log. The removal is not verified.\n- Not changed by #413.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nhttps://claude.ai/code/session_0123r5HnanmW2VUrZ7VWDufH\n","author":{"url":"https://github.com/Brooooooklyn","@type":"Person","name":"Brooooooklyn"},"datePublished":"2026-10-14T04:05:34Z","url":"https://github.com/voidzero-dev/void/issues/419"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8fdb4fe6-74fb-abbc-583a-53a1d93858c5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C04:648A1:44CC74:5E7D3F:6AFB9C75
html-safe-noncee955a9230f681a46309d0169f2f9a37fab79f0a9a074c7b9aaefe5604d70f423
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzA0OjY0OEExOjQ0Q0M3NDo1RTdEM0Y6NkFGQjlDNzUiLCJ2aXNpdG9yX2lkIjoiMzAzMDIxMzAwNDIxMjA1MTA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4d156e26bbd89a80765c432136a8d75a9e8304dcef47dcd666a17def0b642461
hovercard-subject-tagissue:5841738901
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/voidzero-dev/void/419/issue_layout
twitter:imagehttps://opengraph.githubassets.com/93ada3d56179ada85ee874cfe35d9f4cae4c68f0b21579e295cc374687fde300/voidzero-dev/void/issues/419
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/93ada3d56179ada85ee874cfe35d9f4cae4c68f0b21579e295cc374687fde300/voidzero-dev/void/issues/419
og:image:altProblem a. astro preview cannot find the build In an Astro app with void.config.ts: astro build astro preview [ERROR] [@astrojs/cloudflare] No build output found. Run `astro build` before running `...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBrooooooklyn
hostnamegithub.com
expected-hostnamegithub.com
None3cefd19a936819d82cfb5279d50fb56fe79cb9ec30f0f807e04e89b0c58ffae1
turbo-cache-controlno-preview
go-importgithub.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git
octolytics-dimension-user_id149750581
octolytics-dimension-user_loginvoidzero-dev
octolytics-dimension-repository_id1164437080
octolytics-dimension-repository_nwovoidzero-dev/void
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1164437080
octolytics-dimension-repository_network_root_nwovoidzero-dev/void
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release606800bdb1b81d125fc845bdcc262c9fe063fc8f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/voidzero-dev/void/issues/419#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F419
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F419
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/issues/419
Reloadhttps://github.com/voidzero-dev/void/issues/419
Reloadhttps://github.com/voidzero-dev/void/issues/419
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues30 (30)https://github.com/voidzero-dev/void/issues
Pull requests13 (13)https://github.com/voidzero-dev/void/pulls
Discussionshttps://github.com/voidzero-dev/void/discussions
Actionshttps://github.com/voidzero-dev/void/actions
Security and qualityhttps://github.com/voidzero-dev/void/security
Insightshttps://github.com/voidzero-dev/void/pulse
https://github.com/voidzero-dev/void
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/419
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/419
#413https://github.com/voidzero-dev/void/pull/413
Astro: astro preview fails after astro build in Void apps, and dev restarts can drop the trigger middlewarehttps://github.com/voidzero-dev/void/issues/419#top
#413https://github.com/voidzero-dev/void/pull/413
bugSomething isn't workinghttps://github.com/voidzero-dev/void/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Brooooooklyn
Brooooooklynhttps://github.com/Brooooooklyn
on Oct 14, 2026https://github.com/voidzero-dev/void/issues/419#issue-5841738901
fix(void): make PostgreSQL and MySQL void/db work across frameworks, builds and deploys #413https://github.com/voidzero-dev/void/pull/413
fix(void): make PostgreSQL and MySQL void/db work across frameworks, builds and deploys #413https://github.com/voidzero-dev/void/pull/413
fix(void): make PostgreSQL and MySQL void/db work across frameworks, builds and deploys #413https://github.com/voidzero-dev/void/pull/413
Claude Codehttps://claude.com/claude-code
https://claude.ai/code/session_0123r5HnanmW2VUrZ7VWDufHhttps://claude.ai/code/session_0123r5HnanmW2VUrZ7VWDufH
Brooooooklynhttps://github.com/Brooooooklyn
bugSomething isn't workinghttps://github.com/voidzero-dev/void/issues?q=state%3Aopen%20label%3A%22bug%22
on Oct 14, 2026https://github.com/voidzero-dev/void/issues/419#event-33193190048
Brooooooklynhttps://github.com/Brooooooklyn
on Oct 14, 2026https://github.com/voidzero-dev/void/issues/419#event-33206288560
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/86495f92041f84a83326c87981224da64838917d
https://docs.github.com/articles/closing-issues-via-commit-messages
86495f9https://github.com/voidzero-dev/void/commit/86495f92041f84a83326c87981224da64838917d
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/04fa86d57d0cce48ea962e30b519dcdc469608e3
https://docs.github.com/articles/closing-issues-via-commit-messages
04fa86dhttps://github.com/voidzero-dev/void/commit/04fa86d57d0cce48ea962e30b519dcdc469608e3
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/763b856b2063dd2bc7e8d3f5fe756627921718f2
https://docs.github.com/articles/closing-issues-via-commit-messages
763b856https://github.com/voidzero-dev/void/commit/763b856b2063dd2bc7e8d3f5fe756627921718f2
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/d963d20c61bbe5534a2c757f97bff4893313afd3
https://docs.github.com/articles/closing-issues-via-commit-messages
d963d20https://github.com/voidzero-dev/void/commit/d963d20c61bbe5534a2c757f97bff4893313afd3
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/ee0267bc8515461d0208ce4bd4555f91a06b543f
https://docs.github.com/articles/closing-issues-via-commit-messages
ee0267bhttps://github.com/voidzero-dev/void/commit/ee0267bc8515461d0208ce4bd4555f91a06b543f
Brooooooklynhttps://github.com/Brooooooklyn
completedhttps://github.com/voidzero-dev/void/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#413https://github.com/voidzero-dev/void/pull/413
on Oct 14, 2026https://github.com/voidzero-dev/void/issues/419#event-33218439694
Sign up for freehttps://github.com/signup?return_to=https://github.com/voidzero-dev/void/issues/419
Sign in to commenthttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/419
bugSomething isn't workinghttps://github.com/voidzero-dev/void/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.