Skip to content

fix(dashboard): Bundle Nitro client assets#458

Merged
dcramer merged 1 commit into
mainfrom
fix/dashboard-nitro-assets
May 31, 2026
Merged

fix(dashboard): Bundle Nitro client assets#458
dcramer merged 1 commit into
mainfrom
fix/dashboard-nitro-assets

Conversation

@dcramer
Copy link
Copy Markdown
Member

@dcramer dcramer commented May 31, 2026

Dashboard Nitro deployments now copy the browser bundle and CSS into the server output during the dashboard module compile hook. This keeps Vercel functions from depending on the source package or workspace node_modules layout when serving the dashboard UI.

Production Output Guardrail

Add a Vercel preset Nitro fixture test that imports the generated function from .vercel/output/functions/__server.func and verifies the dashboard client and copied CSS serve from that cwd.

Copy the dashboard client bundle and CSS into Nitro server output during the dashboard module build hook so production Vercel functions can serve the UI without relying on the source package layout.

Add a production-shaped Nitro fixture test that imports the built Vercel handler from its function cwd and verifies the dashboard client and CSS are available.

Co-Authored-By: GPT-5 Codex <codex@openai.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment May 31, 2026 5:17pm

Request Review

@dcramer dcramer marked this pull request as ready for review May 31, 2026 17:21
@dcramer dcramer merged commit 961cda8 into main May 31, 2026
16 checks passed
@dcramer dcramer deleted the fix/dashboard-nitro-assets branch May 31, 2026 17:21
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