prod deploy next fix

This commit is contained in:
Samuel Andert 2023-08-22 11:05:15 +02:00
parent 80ac314e1e
commit 3083d7cc65
3 changed files with 4 additions and 4 deletions

View File

@ -3,10 +3,10 @@
"version": "0.1.0",
"private": true,
"scripts": {
"fetch-directus-schema": "dotenv -- node ./src/fetch-schema.js",
"mesh:dev": "dotenv -e .env.local -- mesh build",
"next:dev": "dotenv -e .env.local -- next dev",
"dev": "npm run mesh:dev && npm run next:dev",
"schema": "dotenv -- node ./src/fetch-schema.js",
"dev": "npm run fetch-directus-schema && npm run mesh:dev && npm run next:dev",
"mesh:build": "dotenv -e .env.production -- mesh build",
"next:build": "dotenv -e .env.production -- next build",
"build": "npm run mesh:build && npm run next:build",

View File

@ -22,7 +22,7 @@ const validateUser = (params: any) => {
}
}
const plugins: MeshPlugin = [
const plugins: MeshPlugin<any> = [
useGenericAuth({
resolveUserFn,
validateUser,

View File

@ -24,7 +24,7 @@ async function fetchSchema() {
});
// Save the schema to a file
fs.writeFileSync('./schema/directus.graphql', schema);
fs.writeFileSync('./schemas/directus.graphql', schema);
}
fetchSchema().catch(console.error);