Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOlias committed Nov 7, 2023
1 parent 91959db commit b05636e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/core/src/build/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { readGraphqlSchema } from "./schema";
import { parseViteNodeError, ViteNodeError } from "./stacktrace";

type BuildServiceEvents = {
newConfig: undefined;
newConfig: { config: ResolvedConfig };
newIndexingFunctions: { indexingFunctions: IndexingFunctions };
newSchema: { schema: Schema; graphqlSchema: GraphQLSchema };
};
Expand Down Expand Up @@ -200,8 +200,9 @@ export class BuildService extends Emittery<BuildServiceEvents> {
}

const rawConfig = result.exports.config;
const resolvedConfig =
typeof rawConfig === "function" ? await rawConfig() : await rawConfig;
const resolvedConfig = (
typeof rawConfig === "function" ? await rawConfig() : await rawConfig
) as ResolvedConfig;

// TODO: Validate config lol

Expand Down

0 comments on commit b05636e

Please sign in to comment.