The development server
Mighty provides a development server, built on top of Astro’s own server to integrate with other backends.
How it works
Section titled “How it works”When starting the development server, Mighty:
- Reads the Astro config file in the project root.
- Analyzes included integrations, and adds required configuration for UI renderers (e.g. React) and script injections (e.g. Alpine.js).
- Runs Astro’s development server, with custom component rendering middleware included.
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 development server
Section titled “Run the development server”To run the development server, refer to the instructions your backend adapter provides: