From 9395a61449d1ae2f41dcaa52cdbf5073197fdd9e Mon Sep 17 00:00:00 2001 From: ZXY101 Date: Tue, 1 Aug 2023 13:34:09 +0200 Subject: [PATCH] Allow network access, enable svelte inspector --- svelte.config.js | 4 ++++ vite.config.ts | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index 1cf26a0..0add676 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -12,6 +12,10 @@ const config = { // 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. adapter: adapter() + }, + + vitePlugin: { + inspector: true } }; diff --git a/vite.config.ts b/vite.config.ts index bbf8c7d..56f2195 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,5 +2,8 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], + server: { + host: true + } });