Skip to content

Commit

Permalink
specify ssr lib
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Oct 12, 2023
1 parent 1817f8b commit 9841fb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/houdini/src/lib/router/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export async function buildLocalSchema(config: Config): Promise<void> {

// build the schema somewhere we can import from
await build({
logLevel: 'silent',
build: {
outDir: path.join(config.rootDir, 'temp'),
rollupOptions: {
Expand All @@ -41,6 +40,10 @@ export async function buildLocalSchema(config: Config): Promise<void> {
},
},
ssr: true,
lib: {
entry: path.join(config.localApiDir, '+schema'),
formats: ['es'],
},
},
})

Expand Down

0 comments on commit 9841fb4

Please sign in to comment.