From b94159973deafc846758dbf43b91b796db3df798 Mon Sep 17 00:00:00 2001 From: Warre Date: Sun, 13 Aug 2023 21:40:53 +0200 Subject: [PATCH 1/2] add preprocessing for typescript support --- svelte.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/svelte.config.js b/svelte.config.js index 8ef2412..c1ee212 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,8 +1,10 @@ import adapter from '@sveltejs/adapter-auto' import path from 'path' +import preprocess from 'svelte-preprocess' /** @type {import('@sveltejs/kit').Config} */ const config = { + preprocess: preprocess(), kit: { adapter: adapter(), alias: { From f897bc154ba2a986d923a73cf28a31a42d60d7fc Mon Sep 17 00:00:00 2001 From: Warre Date: Sun, 13 Aug 2023 22:08:27 +0200 Subject: [PATCH 2/2] point client to a relative address --- src/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.js b/src/client.js index 3515d09..11433b9 100644 --- a/src/client.js +++ b/src/client.js @@ -1,5 +1,5 @@ import { HoudiniClient } from '$houdini' export default new HoudiniClient({ - url: 'http://localhost:5173/graphql' + url: '/graphql' })