production deploy next fix
This commit is contained in:
parent
bc5e806ff6
commit
ea934c12da
@ -1,6 +1,6 @@
|
|||||||
serve:
|
serve:
|
||||||
endpoint: /api
|
endpoint: /api
|
||||||
additionalEnvelopPlugins: "./src/envelopePlugin.js"
|
additionalEnvelopPlugins: "./src/envelopePlugin.ts"
|
||||||
sources:
|
sources:
|
||||||
- name: Directus
|
- name: Directus
|
||||||
handler:
|
handler:
|
||||||
|
@ -6,7 +6,7 @@ type UserType = {
|
|||||||
id: string
|
id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const resolveUserFn = async context => {
|
const resolveUserFn = async (context: any) => {
|
||||||
const authHeader = context.req.headers.authorization;
|
const authHeader = context.req.headers.authorization;
|
||||||
const authtoken = process.env.GRAPHQL_MESH
|
const authtoken = process.env.GRAPHQL_MESH
|
||||||
if (authHeader !== authtoken) {
|
if (authHeader !== authtoken) {
|
Reference in New Issue
Block a user