diff --git a/.gitignore b/.gitignore index 635b704..3a213aa 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,8 @@ Thumbs.db vite.config.js.timestamp-* vite.config.ts.timestamp-* +# Wrangler +/.wrangler + # Nix /.direnv diff --git a/bun.lockb b/bun.lockb index 69ec2fd..c019568 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/flake.lock b/flake.lock index 940b612..266a7bc 100644 --- a/flake.lock +++ b/flake.lock @@ -22,11 +22,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1728492678, - "narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=", + "lastModified": 1729256560, + "narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7", + "rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 107e96f..1ec8e7a 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,7 @@ }: { devShells.default = with pkgs; mkShellNoCC { - buildInputs = [bun]; + buildInputs = [bun wrangler]; }; formatter = pkgs.alejandra; diff --git a/package.json b/package.json index 1926793..70ec099 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "leaflet": "^1.9.4" }, "devDependencies": { - "@sveltejs/adapter-auto": "^3.2.5", + "@sveltejs/adapter-cloudflare": "^4.7.3", "@sveltejs/kit": "^2.7.2", "@sveltejs/vite-plugin-svelte": "^4.0.0", "@types/eslint": "^9.6.1", diff --git a/svelte.config.js b/svelte.config.js index 4a82086..c2db680 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-auto'; +import adapter from '@sveltejs/adapter-cloudflare'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ diff --git a/wrangler.toml b/wrangler.toml new file mode 100644 index 0000000..c6dd13b --- /dev/null +++ b/wrangler.toml @@ -0,0 +1,3 @@ +name = "tcl-guessr" +compatibility_date = "2024-09-25" +pages_build_output_dir = ".svelte-kit/cloudflare"