fixing env vars issue

This commit is contained in:
Samuel Andert
2023-08-25 12:31:15 +02:00
parent 8d4b217c99
commit 3ab9976ce8
7 changed files with 70 additions and 51 deletions

View File

@ -18,7 +18,7 @@ export async function fetchSchemas() {
// Fetch the GraphQL SDL schema
const { data: schema } = await axios.get(`${serverUrl}/server/specs/graphql`, {
headers: {
'Authorization': `Bearer ${process.env.DIRECTUS_API}`
'Authorization': process.env.DIRECTUS
}
});