Fixed env variables
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 11m57s
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 11m57s
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user