feat: some linking

This commit is contained in:
TrèsAbhi committed 2025-09-29 13:30:10 -05:00
1 parent e5f7d72df3
commit e9b7059cc0
18 files changed
+5405 -286

No files matched your search

+12 -5
View File
@@ -1,3 +1,4 @@
import node from "@astrojs/node";
import react from "@astrojs/react";
import { wrapper } from "@blitzkit/i18n";
import locales from "@blitzkit/i18n/locales.json";
@@ -9,19 +10,25 @@ import { defineConfig } from "astro/config";
import packageJSON from "../../package.json";
import { tools } from "./src/constants/tools";
const POSSIBLE_TARGETS = ["app", "web"];
const target = process.env.PUBLIC_TARGET;
if (!target || !POSSIBLE_TARGETS.includes(target)) {
throw new Error("Invalid target");
}
export default defineConfig({
devToolbar: { enabled: false },
vite: { server: { allowedHosts: [] } },
output: "static",
output: target === "web" ? "static" : "server",
site: "https://blitzkit.app",
outDir: "../../dist/website",
prefetch: {
defaultStrategy: "hover",
prefetchAll: true,
},
prefetch: { defaultStrategy: "hover", prefetchAll: true },
build: { concurrency: 4 },
adapter: target === "app" ? node({ mode: "standalone" }) : undefined,
integrations: [
favicons({
+3 -2
View File
@@ -3,13 +3,14 @@
"type": "module",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"build": "PUBLIC_TARGET=app astro build",
"preview": "PUBLIC_TARGET=app astro preview",
"lint": "astro check",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/node": "^9.4.4",
"@astrojs/react": "^4.4.0",
"@astrolib/seo": "^1.0.0-beta.8",
"@fontsource/inter": "^5.2.8",