production deploy next fix
This commit is contained in:
parent
bc5e806ff6
commit
ea934c12da
@ -1,6 +1,6 @@
|
||||
serve:
|
||||
endpoint: /api
|
||||
additionalEnvelopPlugins: "./src/envelopePlugin.js"
|
||||
additionalEnvelopPlugins: "./src/envelopePlugin.ts"
|
||||
sources:
|
||||
- name: Directus
|
||||
handler:
|
||||
|
@ -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) {
|
Reference in New Issue
Block a user