Add Form Support

This commit is contained in:
2026-05-02 19:11:09 +02:00
parent d388d7048a
commit 75b50fb9ef
15 changed files with 284 additions and 37 deletions

16
app/plugins/graphql.ts Normal file
View File

@@ -0,0 +1,16 @@
import { GraphQLClient } from "graphql-request";
export default defineNuxtPlugin(() => {
const config=useRuntimeConfig();
const endpoint = process.server
? config.graphqlEndpoint
: config.public.graphqlEndpoint
const client = new GraphQLClient(endpoint);
return {
provide: {
gql: client
}
}
});