diff --git a/www/astro.config.mjs b/www/astro.config.mjs index 81cbd7b1d5..5561bfd83e 100644 --- a/www/astro.config.mjs +++ b/www/astro.config.mjs @@ -1,7 +1,7 @@ +import cloudflare from "@astrojs/cloudflare"; import mdx from "@astrojs/mdx"; import react from "@astrojs/react"; import sitemap from "@astrojs/sitemap"; -import vercel from "@astrojs/vercel/serverless"; import { defineConfig } from "astro/config"; import rehypeAutolinkHeadings from "rehype-autolink-headings"; import rehypeExternalLinks from "rehype-external-links"; @@ -12,8 +12,9 @@ import remarkCodeTitles from "remark-code-titles"; export default defineConfig({ site: `https://create.t3.gg/`, output: "server", - adapter: vercel(), + adapter: cloudflare(), markdown: { + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment remarkPlugins: [remarkCodeTitles], rehypePlugins: [ [ diff --git a/www/bun.lockb b/www/bun.lockb index 6690b24c9e..5374fa2d29 100755 Binary files a/www/bun.lockb and b/www/bun.lockb differ diff --git a/www/package.json b/www/package.json index a476441b8d..26293e489a 100644 --- a/www/package.json +++ b/www/package.json @@ -1,5 +1,5 @@ { - "name": "@ct3a/www", + "name": "@ct3cfa/www", "version": "0.0.1", "private": true, "scripts": { @@ -18,6 +18,7 @@ }, "dependencies": { "@algolia/client-search": "^4.23.3", + "@astrojs/cloudflare": "^11.0.5", "@astrojs/mdx": "^3.0.1", "@astrojs/sitemap": "^3.1.5", "@astrojs/vercel": "^7.6.0", @@ -29,12 +30,10 @@ "@ianvs/prettier-plugin-sort-imports": "^4.2.1", "@resvg/resvg-js": "^2.4.1", "@stackblitz/sdk": "^1.9.0", - "@vercel/analytics": "^1.0.1", "clsx": "^1.2.1", "embla-carousel": "^7.1.0", "embla-carousel-autoplay": "^7.1.0", "satori": "^0.8.1", - "sharp": "^0.32.6", "tailwind-scrollbar": "^3.0.0", "treeify": "^1.1.0", "unist-util-visit": "^4.1.2", diff --git a/www/src/components/headCommon.astro b/www/src/components/headCommon.astro index 8bfe936b68..8dc3f28fea 100644 --- a/www/src/components/headCommon.astro +++ b/www/src/components/headCommon.astro @@ -27,4 +27,3 @@ /> -