aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-server')
-rw-r--r--web/pw-server/package.json2
-rw-r--r--web/pw-server/src/hooks.js8
-rw-r--r--web/pw-server/svelte.config.js5
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: {