update sveltekit version
This commit is contained in:
parent
ad11ae4286
commit
b679103a4c
3 changed files with 11 additions and 4 deletions
|
@ -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",
|
||||
|
|
8
web/pw-server/src/hooks.js
Normal file
8
web/pw-server/src/hooks.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
/** @type {import('@sveltejs/kit').Handle} */
|
||||
export async function handle({ event, resolve }) {
|
||||
const response = await resolve(event, {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
return response;
|
||||
}
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue