fix: eslint fixes rd.3

This commit is contained in:
Zack Spear
2023-07-21 12:06:07 -07:00
parent 1e0cb2ca68
commit 33763b5809
20 changed files with 114 additions and 121 deletions

View File

@@ -1,12 +1,5 @@
import type { CodegenConfig } from '@graphql-codegen/cli';
const getApiCodegenUrl = () => {
if (process.env.USE_LOCAL_CODEGEN === 'true') {
return 'http://localhost:3001/graphql';
}
return '';
};
const config: CodegenConfig = {
overwrite: true,
documents: ['./**/**/*.ts'],
@@ -34,7 +27,7 @@ const config: CodegenConfig = {
{
'http://localhost:3001/graphql': {
headers: {
origin: `/var/run/unraid-php.sock`,
origin: '/var/run/unraid-php.sock',
'x-api-key': 'unupc_fab6ff6ffe51040595c6d9ffb63a353ba16cc2ad7d93f813a2e80a5810',
},
},