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