diff --git a/.gitignore b/.gitignore index 3804cd921..8a6c5509b 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,7 @@ public/sitemap* target # packages/core/src/protos/*.ts /.vercel -/.astro +.astro .vercel /src /packages/bot/src/prisma \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 5040974fb..d3190315d 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/packages/website/.gitignore b/packages/website/.gitignore deleted file mode 100644 index 5fea4397f..000000000 --- a/packages/website/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# build output -dist/ -# generated types -.astro/ - -# dependencies -node_modules/ - -# logs -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* - -# environment variables -.env -.env.production - -# macOS-specific files -.DS_Store - -# jetbrains setting folder -.idea/ -.vercel/ diff --git a/packages/website/astro.config.mjs b/packages/website/astro.config.mjs index be8cd578b..666c3c70d 100644 --- a/packages/website/astro.config.mjs +++ b/packages/website/astro.config.mjs @@ -1,58 +1,8 @@ // @ts-check - -import react from "@astrojs/react"; -import sitemap from "@astrojs/sitemap"; -import { SUPPORTED_LOCALES } from "@blitzkit/i18n"; -import strings from "@blitzkit/i18n/strings/en.json"; -import favicons from "astro-favicons"; import { defineConfig } from "astro/config"; +import react from "@astrojs/react"; + export default defineConfig({ - i18n: { - defaultLocale: "en", - locales: [...SUPPORTED_LOCALES], - routing: { - prefixDefaultLocale: false, - }, - }, - - devToolbar: { enabled: false }, - output: "static", - site: "https://blitzkit.app", - outDir: "../../dist/website", - prefetch: true, - - integrations: [ - react(), - sitemap(), - favicons({ - name: strings.common.name, - short_name: strings.common.name, - - manifest: { - start_url: "/", - display_override: ["minimal-ui"], - }, - - icons: { - windows: true, - android: true, - appleIcon: true, - appleStartup: true, - favicons: true, - yandex: true, - }, - }), - ], - vite: { - resolve: { - alias: { - ".prisma/client/index-browser": - "../../node_modules/.prisma/client/index-browser.js", - }, - }, - ssr: { - noExternal: [/^d3.*$/, /^@nivo.*$/], - }, - }, + integrations: [react()], }); diff --git a/packages/website/package.json b/packages/website/package.json index f9cda09d1..36df5563c 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -3,52 +3,16 @@ "type": "module", "scripts": { "dev": "astro dev", - "start": "astro dev", - "lint": "astro check", - "build": "astro check && astro build", + "build": "astro build", "preview": "astro preview", "astro": "astro" }, "dependencies": { - "@astrolib/seo": "^1.0.0-beta.8", - "@blitzkit/core": "workspace:*", - "@blitzkit/i18n": "workspace:*", - "varuna": "workspace:*", - "@fontsource/inter": "^5.2.8", - "@nanostores/persistent": "^1.1.0", - "@nanostores/react": "^1.0.0", - "@nivo/bar": "^0.99.0", - "@nivo/line": "^0.99.0", - "@radix-ui/colors": "^3.0.0", - "@radix-ui/react-icons": "^1.3.2", - "@radix-ui/themes": "^3.2.1", - "@react-three/drei": "^10.7.6", - "@react-three/fiber": "^9.3.0", - "compare-versions": "^6.1.1", - "echarts": "^6.0.0", - "immer": "^10.1.3", - "js-cookie": "^3.0.5", - "markdown-to-jsx": "^7.7.13", - "nanostores": "^1.0.1", - "quicklime": "^1.2.0", - "react": "^19.1.1", - "react-device-detect": "^2.2.3", - "react-dom": "^19.1.1", - "react-promise-suspense": "^0.3.4", - "three": "^0.180.0", - "urlon": "^3.1.0" - }, - "devDependencies": { - "@astrojs/check": "^0.9.4", "@astrojs/react": "^4.4.0", - "@astrojs/sitemap": "^3.6.0", - "@playform/compress": "^0.2.0", - "@playform/inline": "^0.1.2", - "@types/js-cookie": "^3.0.6", "@types/react": "^19.1.14", "@types/react-dom": "^19.1.9", - "@types/three": "^0.180.0", "astro": "^5.14.1", - "astro-compressor": "^1.1.2" + "react": "^19.1.1", + "react-dom": "^19.1.1" } }