chore: improve
This commit is contained in:
parent
60d40b196c
commit
7a9da2e133
@ -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,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user