Allow network access, enable svelte inspector

This commit is contained in:
ZXY101
2023-08-01 13:34:09 +02:00
parent 7c3441c87d
commit 9395a61449
2 changed files with 8 additions and 1 deletions

View File

@@ -12,6 +12,10 @@ const config = {
// If your environment is not supported or you settled on a specific environment, switch out the adapter. // If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters. // See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter() adapter: adapter()
},
vitePlugin: {
inspector: true
} }
}; };

View File

@@ -2,5 +2,8 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
export default defineConfig({ export default defineConfig({
plugins: [sveltekit()] plugins: [sveltekit()],
server: {
host: true
}
}); });