From 9ea218a225cd3b6d3a0fcff5380e5e9be37ec2af Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 15 Jul 2025 13:47:19 -0700 Subject: prerender --- bun.lockb | Bin 66510 -> 66924 bytes package.json | 1 + src/routes/+layout.ts | 1 + src/routes/+page.svelte | 2 +- svelte.config.js | 8 ++++---- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bun.lockb b/bun.lockb index c6687a9..e6ff9ea 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index b8b1aea..c933ca2 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@scure/bip32": "^1.7.0", "@scure/bip39": "^1.6.0", "@scure/btc-signer": "^1.8.1", + "@sveltejs/adapter-static": "^3.0.8", "daisyui": "^5.0.46" } } diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index a3d1578..89da957 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -1 +1,2 @@ export const ssr = false; +export const prerender = true; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index db8986d..f82805e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -41,7 +41,7 @@ let utxos = []; let api = 'https://mempool.space/api'; - let amt = $state(800); + let amt = $state(); // let destination = $state('bc1qqz6nlwxwmfqw0v864p5sggqst2xf0mevtyc579'); // let password = $state('123'); // let mnemonic = $state( diff --git a/svelte.config.js b/svelte.config.js index 1295460..0caa92f 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,5 +1,5 @@ -import adapter from '@sveltejs/adapter-auto'; -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; +import adapter from "@sveltejs/adapter-static"; +import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; /** @type {import('@sveltejs/kit').Config} */ const config = { @@ -11,8 +11,8 @@ const config = { // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. // If your environment is not supported, or you settled on a specific environment, switch out the adapter. // See https://svelte.dev/docs/kit/adapters for more information about adapters. - adapter: adapter() - } + adapter: adapter(), + }, }; export default config; -- cgit v1.2.3