Fixed env variables
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 11m57s

This commit is contained in:
2025-12-06 20:29:16 -05:00
parent 9a37330ede
commit 9146a0c340
6 changed files with 215 additions and 6 deletions

View File

@@ -22,7 +22,13 @@ export default function RootLayout({
const client = createClient({
url: "/api/graphql",
exchanges: [cacheExchange, ssr, fetchExchange],
suspense: true
suspense: true,
fetchOptions: {
headers: {
"x-api-key":
process.env?.API_TOKEN || process.env?.NEXT_PUBLIC_API_TOKEN || ""
}
}
});
return [client, ssr];