diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-24 18:47:36 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-24 18:47:36 +0100 |
commit | b679103a4ce1ee87394c318f41b4cd12d2d41709 (patch) | |
tree | c9312a431c8f444d4944b720397c4ad36ba5cbe0 /web/pw-server | |
parent | ad11ae42865f12d411b34dd37c6b6949cc96a5ea (diff) | |
download | planetwars.dev-b679103a4ce1ee87394c318f41b4cd12d2d41709.tar.xz planetwars.dev-b679103a4ce1ee87394c318f41b4cd12d2d41709.zip |
update sveltekit version
Diffstat (limited to 'web/pw-server')
-rw-r--r-- | web/pw-server/package.json | 2 | ||||
-rw-r--r-- | web/pw-server/src/hooks.js | 8 | ||||
-rw-r--r-- | web/pw-server/svelte.config.js | 5 |
3 files changed, 11 insertions, 4 deletions
diff --git a/web/pw-server/package.json b/web/pw-server/package.json index d29479c..c8be055 100644 --- a/web/pw-server/package.json +++ b/web/pw-server/package.json @@ -14,7 +14,7 @@ "devDependencies": { "@originjs/vite-plugin-commonjs": "^1.0.1", "@sveltejs/adapter-auto": "next", - "@sveltejs/kit": "next", + "@sveltejs/kit": "^1.0.0-next.286", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.30", "@typescript-eslint/eslint-plugin": "^4.31.1", "@typescript-eslint/parser": "^4.31.1", diff --git a/web/pw-server/src/hooks.js b/web/pw-server/src/hooks.js new file mode 100644 index 0000000..c5785ed --- /dev/null +++ b/web/pw-server/src/hooks.js @@ -0,0 +1,8 @@ +/** @type {import('@sveltejs/kit').Handle} */ +export async function handle({ event, resolve }) { + const response = await resolve(event, { + ssr: false, + }); + + return response; +}
\ No newline at end of file diff --git a/web/pw-server/svelte.config.js b/web/pw-server/svelte.config.js index f2587f7..4eddd58 100644 --- a/web/pw-server/svelte.config.js +++ b/web/pw-server/svelte.config.js @@ -14,8 +14,7 @@ const config = { adapter: adapter(), // hydrate the <div id="svelte"> element in src/app.html - target: "#svelte", - ssr: false, + // target: "#svelte", vite: { plugins: [ isoImport(), @@ -31,7 +30,7 @@ const config = { }, server: { proxy: { - "/api/": "http://localhost:9000", + "/api/": "http://127.0.0.1:9000", "/ws": "ws://localhost:9000/ws", }, fs: { |