From 463406493dc410a2b63f3eab1b0cb41777a40afb Mon Sep 17 00:00:00 2001 From: Yoeri Boven Date: Sat, 19 Oct 2024 00:56:26 +0200 Subject: [PATCH] wip --- resources/js/app.js | 4 ++++ vite.config.js | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index ee1c9d8..c03fc84 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -3,6 +3,10 @@ import { createInertiaApp, Link, router } from "@inertiajs/vue3"; import { i18nVue } from "laravel-vue-i18n"; import mitt from "mitt"; import { resolvePageComponent } from "laravel-vite-plugin/inertia-helpers"; +import axios from "axios"; + +window.axios = axios; +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; createInertiaApp({ title: title => `${title} - Yoeri.me`, diff --git a/vite.config.js b/vite.config.js index 93e2b5c..8f50c0c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,10 +2,6 @@ import { defineConfig } from "vite"; import laravel from "laravel-vite-plugin"; import vue from "@vitejs/plugin-vue"; import path from "path"; -import axios from "axios"; - -window.axios = axios; -window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; export default defineConfig({ plugins: [