Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-netlify": "^4.2.0",
"@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@teapotlabs/identeapots": "^1.0.8",
Expand Down
11 changes: 10 additions & 1 deletion src/routes/countdown/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@
import CountdownTimer from "$lib/components/CountdownTimer.svelte";
import BackgroundOverlay from "$lib/components/BackgroundOverlay.svelte";
import BlurryBg from "$lib/components/BlurryBg.svelte";
import {onMount} from "svelte";
import {isLive} from "$lib";
import {goto} from "$app/navigation";

onMount(() => {
if(isLive()){
goto('/')
}
})
</script>

<section class="bg-black w-full min-h-screen relative overflow-x-hidden px-2">
<BackgroundOverlay />
<BlurryBg />

<CountdownTimer />
</section>
</section>
10 changes: 0 additions & 10 deletions src/routes/countdown/+page.ts

This file was deleted.

11 changes: 9 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-netlify';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
Expand All @@ -11,7 +11,14 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// 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()
// adapter: adapter()
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: 'index.html',
precompress: false,
strict: true
})
}
};

Expand Down
19 changes: 5 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@
dependencies:
tslib "^2.1.0"

"@iarna/toml@^2.2.5":
version "2.2.5"
resolved "https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.5.tgz#b32366c89b43c6f8cefbdefac778b9c828e3ba8c"
integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==

"@isaacs/cliui@^8.0.2":
version "8.0.2"
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
Expand Down Expand Up @@ -312,14 +307,10 @@
dependencies:
import-meta-resolve "^4.1.0"

"@sveltejs/adapter-netlify@^4.2.0":
version "4.3.0"
resolved "https://registry.yarnpkg.com/@sveltejs/adapter-netlify/-/adapter-netlify-4.3.0.tgz#8ad42bb4c406c43d6e26446eb7410008876cb39f"
integrity sha512-lSO3Agv/jPy93KKsj3HSrrBaG1vHe63z+p31l12yGUc2v/jGN94cSnynm540OHMo9ZoFV30H/SbE+lfgxfL2KA==
dependencies:
"@iarna/toml" "^2.2.5"
esbuild "^0.21.5"
set-cookie-parser "^2.6.0"
"@sveltejs/adapter-static@^3.0.2":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@sveltejs/adapter-static/-/adapter-static-3.0.2.tgz#b505c429616c3319d40d293b741f6915da143f49"
integrity sha512-/EBFydZDwfwFfFEuF1vzUseBoRziwKP7AoHAwv+Ot3M084sE/HTVBHf9mCmXfdM9ijprY5YEugZjleflncX5fQ==

"@sveltejs/kit@^2.0.0":
version "2.5.18"
Expand Down Expand Up @@ -966,7 +957,7 @@ es6-promise@^3.1.2:
resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613"
integrity sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==

esbuild@^0.21.3, esbuild@^0.21.5:
esbuild@^0.21.3:
version "0.21.5"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.21.5.tgz#9ca301b120922959b766360d8ac830da0d02997d"
integrity sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==
Expand Down