mirror of
https://github.com/unraid/api.git
synced 2026-01-04 23:50:37 -06:00
fix: eslint fixes rd.3
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user