diff --git a/apps/website/bun.lockb b/apps/website/bun.lockb index 9cfc3b0..16a6c2b 100755 Binary files a/apps/website/bun.lockb and b/apps/website/bun.lockb differ diff --git a/apps/website/package.json b/apps/website/package.json index 5de2235..420268f 100644 --- a/apps/website/package.json +++ b/apps/website/package.json @@ -9,7 +9,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/cloudflare": "^11.0.1", + "@astrojs/cloudflare": "^11.0.4", "@astrojs/preact": "^3.5.1", "@astrojs/prefetch": "^0.2.1", "@astrojs/sitemap": "^3.1.6", @@ -25,6 +25,7 @@ "tailwindcss": "^3.3.1" }, "devDependencies": { + "@cloudflare/workers-types": "^4.20240806.0", "autoprefixer": "^10.4.14", "cssnano": "^6.0.0", "postcss": "^8.4.21", diff --git a/apps/website/src/env.d.ts b/apps/website/src/env.d.ts index 6577947..e7b7e8b 100644 --- a/apps/website/src/env.d.ts +++ b/apps/website/src/env.d.ts @@ -1,7 +1,6 @@ /// -type D1Database = import("@cloudflare/workers-types").D1Database; -type ENV = { +type Env = { GITHUB_APP_NAME: string; DISCORD_CLIENT_ID: string; DISCORD_CLIENT_SECRET: string; @@ -10,7 +9,7 @@ type ENV = { DB: D1Database; }; -export interface Guild { +/*export interface Guild { id: string; name: string; icon: string; @@ -21,9 +20,9 @@ export interface Guild { export interface MutualeGuild { mutual: boolean; guild: Guild; -} +}*/ -type Runtime = import("@astrojs/cloudflare").Runtime; +type Runtime = import("@astrojs/cloudflare").Runtime; // https://github.com/withastro/astro/issues/7394#issuecomment-1975657601 declare namespace App { diff --git a/apps/website/tsconfig.json b/apps/website/tsconfig.json index f35cf4f..15b2c07 100644 --- a/apps/website/tsconfig.json +++ b/apps/website/tsconfig.json @@ -1,12 +1,11 @@ { - "extends": "astro/tsconfigs/strictest", + "extends": "astro/tsconfigs/strict", "compilerOptions": { + "types": ["@cloudflare/workers-types"], "strictNullChecks": true, - "allowJs": true, "baseUrl": ".", "paths": { "~/*": ["src/*"] - }, - "types": ["./src/env.d.ts"] + } } }