Wedding Invitation
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * We'll load the axios HTTP library which allows us to easily issue requests
  3. * to our Laravel back-end. This library automatically handles sending the
  4. * CSRF token as a header based on the value of the "XSRF" token cookie.
  5. */
  6. import axios from 'axios';
  7. window.axios = axios;
  8. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  9. /**
  10. * Echo exposes an expressive API for subscribing to channels and listening
  11. * for events that are broadcast by Laravel. Echo and event broadcasting
  12. * allows your team to easily build robust real-time web applications.
  13. */
  14. // import Echo from 'laravel-echo';
  15. // import Pusher from 'pusher-js';
  16. // window.Pusher = Pusher;
  17. // window.Echo = new Echo({
  18. // broadcaster: 'pusher',
  19. // key: import.meta.env.VITE_PUSHER_APP_KEY,
  20. // cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1',
  21. // wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`,
  22. // wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80,
  23. // wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443,
  24. // forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
  25. // enabledTransports: ['ws', 'wss'],
  26. // });