From 042cdcdb3a37be6211f36dd6d03675e59a85cffd Mon Sep 17 00:00:00 2001 From: br0kenpixel <23280129+br0kenpixel@users.noreply.github.com> Date: Fri, 31 Oct 2025 17:45:27 +0100 Subject: [PATCH] fix: update Sanctum base URL and origin for local development --- frontend/nuxt.config.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts index 96b8e99..04cec1e 100644 --- a/frontend/nuxt.config.ts +++ b/frontend/nuxt.config.ts @@ -22,8 +22,6 @@ export default defineNuxtConfig({ }, sanctum: { - baseUrl: 'http://localhost:8000', - origin: 'http://localhost:3000', redirect: { onLogin: '/dashboard', onLogout: "/", @@ -33,4 +31,13 @@ export default defineNuxtConfig({ }, redirectIfAuthenticated: true }, + + runtimeConfig: { + public: { + sanctum: { + baseUrl: 'http://localhost:8080', // NUXT_PUBLIC_SANCTUM_BASE_URL + origin: 'http://localhost:8080', // NUXT_PUBLIC_SANCTUM_ORIGIN + }, + }, + } }); \ No newline at end of file