fix(graphql): change doc location

/graphql is the root of GraphQL Engine and rails makes it harder to look for static assets under it
This commit is contained in:
Paul Chavard 2022-07-06 11:23:01 +02:00
parent 021649cc62
commit 8331076ab1
2 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View file

@ -49,4 +49,4 @@ public/vite-test
app/graphql/schema.json
public/graphql/schema
public/doc/graphql

View file

@ -80,7 +80,7 @@
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx ./app/javascript",
"webpack:build": "NODE_ENV=production bin/webpack",
"lint:types": "tsc",
"graphql:doc:build": "bin/rake graphql:schema:json && graphdoc --force",
"graphql:doc:build": "RAILS_ENV=production bin/rake graphql:schema:json && graphdoc --force",
"postinstall": "patch-package",
"test": "vitest",
"coverage": "vitest run --coverage"
@ -90,6 +90,6 @@
},
"graphdoc": {
"schemaFile": "./app/graphql/schema.json",
"output": "./public/graphql/schema"
"output": "./public/doc/graphql"
}
}