From 0e62322730ffe0de76aaaa9e06d4b8b67a08080e Mon Sep 17 00:00:00 2001 From: JonathonRP Date: Sun, 20 Oct 2024 21:58:09 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20update=20settings=20to=20?= =?UTF-8?q?have=20consistant=20start?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix dev container debugging and animate layout BREAKING CHANGE: 🧨 none ✅ Closes: none --- .devcontainer/devcontainer.json | 4 ++-- src/lib/components/motion/AnimateLayout.svelte | 2 +- vite.config.ts | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 51a8422..e72894c 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,8 +18,8 @@ }, // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [5173], - // "appPort": [5000] + "forwardPorts": [5000], + // "appPort": [5000], // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "corepack enable && corepack install && pnpm install", diff --git a/src/lib/components/motion/AnimateLayout.svelte b/src/lib/components/motion/AnimateLayout.svelte index 63809b3..dcca07d 100644 --- a/src/lib/components/motion/AnimateLayout.svelte +++ b/src/lib/components/motion/AnimateLayout.svelte @@ -7,7 +7,7 @@ damping: 30, }; - let active = $state(false); + let active = false; function toggleSwitch() { active = !active; diff --git a/vite.config.ts b/vite.config.ts index 29aac04..1cc3ba0 100755 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,4 +17,9 @@ export default defineConfig({ enabled: true, }, }, + server: { + port: 5000, + strictPort: true, + host: '127.0.0.1', + }, });