feat: add cloudflare pages compat
This commit is contained in:
parent
9d471f92a3
commit
32af8cd086
7 changed files with 12 additions and 6 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -20,5 +20,8 @@ Thumbs.db
|
|||
vite.config.js.timestamp-*
|
||||
vite.config.ts.timestamp-*
|
||||
|
||||
# Wrangler
|
||||
/.wrangler
|
||||
|
||||
# Nix
|
||||
/.direnv
|
||||
|
|
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
6
flake.lock
generated
6
flake.lock
generated
|
@ -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": {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
}: {
|
||||
devShells.default = with pkgs;
|
||||
mkShellNoCC {
|
||||
buildInputs = [bun];
|
||||
buildInputs = [bun wrangler];
|
||||
};
|
||||
|
||||
formatter = pkgs.alejandra;
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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} */
|
||||
|
|
3
wrangler.toml
Normal file
3
wrangler.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
name = "tcl-guessr"
|
||||
compatibility_date = "2024-09-25"
|
||||
pages_build_output_dir = ".svelte-kit/cloudflare"
|
Loading…
Add table
Add a link
Reference in a new issue