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