prod deploy next fix
This commit is contained in:
parent
80ac314e1e
commit
3083d7cc65
@ -3,10 +3,10 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"fetch-directus-schema": "dotenv -- node ./src/fetch-schema.js",
|
||||||
"mesh:dev": "dotenv -e .env.local -- mesh build",
|
"mesh:dev": "dotenv -e .env.local -- mesh build",
|
||||||
"next:dev": "dotenv -e .env.local -- next dev",
|
"next:dev": "dotenv -e .env.local -- next dev",
|
||||||
"dev": "npm run mesh:dev && npm run next:dev",
|
"dev": "npm run fetch-directus-schema && npm run mesh:dev && npm run next:dev",
|
||||||
"schema": "dotenv -- node ./src/fetch-schema.js",
|
|
||||||
"mesh:build": "dotenv -e .env.production -- mesh build",
|
"mesh:build": "dotenv -e .env.production -- mesh build",
|
||||||
"next:build": "dotenv -e .env.production -- next build",
|
"next:build": "dotenv -e .env.production -- next build",
|
||||||
"build": "npm run mesh:build && npm run next:build",
|
"build": "npm run mesh:build && npm run next:build",
|
||||||
|
@ -22,7 +22,7 @@ const validateUser = (params: any) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const plugins: MeshPlugin = [
|
const plugins: MeshPlugin<any> = [
|
||||||
useGenericAuth({
|
useGenericAuth({
|
||||||
resolveUserFn,
|
resolveUserFn,
|
||||||
validateUser,
|
validateUser,
|
||||||
|
@ -24,7 +24,7 @@ async function fetchSchema() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Save the schema to a file
|
// Save the schema to a file
|
||||||
fs.writeFileSync('./schema/directus.graphql', schema);
|
fs.writeFileSync('./schemas/directus.graphql', schema);
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchSchema().catch(console.error);
|
fetchSchema().catch(console.error);
|
||||||
|
Reference in New Issue
Block a user