You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CORS support - configure cross-origin resource sharing via the cors field in pyra.config.ts
New CorsConfig type in packages/shared/src/types.ts: origin, methods, allowedHeaders, exposedHeaders, credentials, maxAge fields
packages/core/src/cors.ts — buildCORSHeaders() and applyCors() helpers; origin resolution supports wildcard, string, and array allow-lists; automatic OPTIONS preflight handling
Dev server and production server both apply CORS headers via applyCors() before routing
Static HTML CSS injection in dev server — prerendered/static HTML pages now receive <link rel="stylesheet"> tags for co-located CSS imports, consistent with SSR pages
HMR client CSS injection - extracted CSS is now injected into the HMR client bundle so hot-reloaded pages receive stylesheet updates
Refactored
packages/core/src/dev-server.ts split into eight focused modules under packages/core/src/dev/
dev-compiler.ts — on-demand esbuild compilation
dev-hmr.ts — WebSocket HMR server and client injection
dev-dashboard.ts — /_pyra dashboard and API endpoint handlers
dev-static.ts — static file and public/ directory serving
dev-api.ts — API route dispatch and method validation
dev-routes.ts — page route matching and SSR pipeline entry
dev-errors.ts — error boundary rendering and 404 handling