Fix Galerie

This commit is contained in:
2026-05-05 12:29:21 +02:00
parent 75b50fb9ef
commit 8f8decf263
12 changed files with 187 additions and 278 deletions

View File

@@ -3,7 +3,7 @@ import { GraphQLClient } from "graphql-request";
export default defineNuxtPlugin(() => {
const config=useRuntimeConfig();
const endpoint = process.server
const endpoint = import.meta.server
? config.graphqlEndpoint
: config.public.graphqlEndpoint

15
app/plugins/my-fetch.ts Normal file
View File

@@ -0,0 +1,15 @@
export default defineNuxtPlugin(() => {
const config = useRuntimeConfig()
const myfetch = $fetch.create({
baseURL: import.meta.server ? config.apiBase : config.public.apiBase,
onRequest({ options }) {
},
})
return {
provide: {
myfetch: myfetch,
},
}
})