From 9841fb4eaf4838efa2d53d71270852f2b3dd5c18 Mon Sep 17 00:00:00 2001 From: Alec Aivazis Date: Wed, 11 Oct 2023 21:53:19 -0700 Subject: [PATCH] specify ssr lib --- packages/houdini/src/lib/router/server.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/houdini/src/lib/router/server.ts b/packages/houdini/src/lib/router/server.ts index c2cf65703b..6e302527df 100644 --- a/packages/houdini/src/lib/router/server.ts +++ b/packages/houdini/src/lib/router/server.ts @@ -29,7 +29,6 @@ export async function buildLocalSchema(config: Config): Promise { // build the schema somewhere we can import from await build({ - logLevel: 'silent', build: { outDir: path.join(config.rootDir, 'temp'), rollupOptions: { @@ -41,6 +40,10 @@ export async function buildLocalSchema(config: Config): Promise { }, }, ssr: true, + lib: { + entry: path.join(config.localApiDir, '+schema'), + formats: ['es'], + }, }, })