Fixed Workflow API URL
This commit is contained in:
@@ -4,7 +4,7 @@ definePageMeta({
|
||||
middleware: [], // Keine Auth-Checks durch Nuxt
|
||||
auth: false // Falls du das nuxt-auth Modul nutzt
|
||||
})
|
||||
|
||||
const config = useRuntimeConfig()
|
||||
const route = useRoute()
|
||||
const token = route.params.token
|
||||
const { $api } = useNuxtApp() // Dein Fetch-Wrapper
|
||||
@@ -27,7 +27,7 @@ const loadContext = async () => {
|
||||
|
||||
// Abruf an dein Fastify Backend
|
||||
// Pfad evtl. anpassen, wenn du Proxy nutzt
|
||||
const res = await $fetch(`http://localhost:3100/workflows/context/${token}`, { headers })
|
||||
const res = await $fetch(`${config.public.apiBase}/workflows/context/${token}`, { headers })
|
||||
|
||||
context.value = res
|
||||
status.value = 'ready'
|
||||
|
||||
Reference in New Issue
Block a user