Configuration

#Configuration options

To configure alpinejs-ray, you must create an alpineRayConfig property on the window object before loading alpinejs-ray:

<script>
    window.alpineRayConfig = {
        logComponentsInit: true,
        logErrors: true,
        logEvents: ['abc'],
    };
</script>

<!-- load axios and alpinejs-ray -->

#Configuration reference

Name Type(s) Default Description
logComponentsInit boolean false Send info on component initializations to Ray
logErrors boolean false Send JavaScript errors to Ray instead of the console
logEvents boolean, array false Send specified custom events to Ray, or false to disable
Help us improve this page

Debug without breaking your flow

Ray keeps all your debug output neatly organized in a dedicated desktop app.

Licenses are valid for 1 year and managed through Spatie. Licenses purchased before Ray 3 remain valid. VAT is calculated at checkout.