The production server
Mighty provides a production server, based on Hono, that renders Astro components on-demand.
How it works
Section titled “How it works”Mighty first builds optimized versions of your components through the Astro build process.
Then, when starting the production server, Mighty:
- Renders the optimized components.
- Provides necessary logic for UI renderers (e.g. React) and styling to work.
In addition, backend adapters may perform additional tasks for better integration, e.g. injecting Astro styles in the <head>
tag of Blade views (for Laravel).
Run the production server
Section titled “Run the production server”To run the production server, refer to the instructions your backend adapter provides: