chore: improve

This commit is contained in:
StarpTech 2023-06-19 09:35:40 +02:00
parent 60d40b196c
commit 7a9da2e133

View File

@ -3,7 +3,6 @@ import {
cors, cors,
EnvironmentVariable, EnvironmentVariable,
introspect, introspect,
templates,
} from "@wundergraph/sdk"; } from "@wundergraph/sdk";
import server from "./wundergraph.server"; import server from "./wundergraph.server";
import operations from "./wundergraph.operations"; import operations from "./wundergraph.operations";
@ -18,13 +17,6 @@ configureWunderGraphApplication({
apis: [spacex], apis: [spacex],
server, server,
operations, operations,
codeGenerators: [
{
templates: [
...templates.typescript.all,
],
},
],
cors: { cors: {
...cors.allowAll, ...cors.allowAll,
allowedOrigins: allowedOrigins:
@ -37,8 +29,5 @@ configureWunderGraphApplication({
"http://localhost:3000", "http://localhost:3000",
new EnvironmentVariable("WG_ALLOWED_ORIGIN"), new EnvironmentVariable("WG_ALLOWED_ORIGIN"),
], ],
}, }
dotGraphQLConfig: {
hasDotWunderGraphDirectory: false,
},
}); });