production deploy next fix

This commit is contained in:
Samuel Andert 2023-08-22 10:55:41 +02:00
parent bc5e806ff6
commit ea934c12da
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
serve:
endpoint: /api
additionalEnvelopPlugins: "./src/envelopePlugin.js"
additionalEnvelopPlugins: "./src/envelopePlugin.ts"
sources:
- name: Directus
handler:

View File

@ -6,7 +6,7 @@ type UserType = {
id: string
}
const resolveUserFn = async context => {
const resolveUserFn = async (context: any) => {
const authHeader = context.req.headers.authorization;
const authtoken = process.env.GRAPHQL_MESH
if (authHeader !== authtoken) {