This commit is contained in:
badblocks 2026-07-10 00:21:45 -07:00
parent 6e7977997e
commit 8aa67df5c7
Signed by: badblocks
SSH key fingerprint: SHA256:hEcM6BP4hKm9F7WsomNuXSBpPn2BSDnFzPSl3y1NerQ
22 changed files with 300 additions and 240 deletions

View file

@ -1,18 +1,15 @@
import htmx from "astro-htmx";
// @ts-check
import { defineConfig, envField } from "astro/config";
import { defineConfig, sessionDrivers, envField } from "astro/config";
import alpinejs from "@astrojs/alpinejs";
import sitemap from "@astrojs/sitemap";
import bun from "@nurodev/astro-bun";
//import bun from "@nurodev/astro-bun"; //disable for now
import node from "@astrojs/node";
import db from "@astrojs/db";
// https://astro.build/config
export default defineConfig({
site: "https://badblocks.dev",
trailingSlash: "never",
// bun adapter is not official, so keep
// the node adapter available just in case
// bun adapter is not official, also a little wonky, so use node adapter for now
adapter: node({
mode: "standalone",
}),
@ -24,12 +21,12 @@ export default defineConfig({
prefetchAll: true,
},
security: {
checkOrigin: false,
allowedDomains: [{ protocol: "https", hostname: "badblocks.dev" }],
},
session: {
driver: "lru-cache",
ttl: 3600,
maxEntries: 1000,
driver: sessionDrivers.lruCache({
ttl: 3600 * 1000,
}),
},
server: {
host: true,
@ -59,10 +56,8 @@ export default defineConfig({
}),
},
},
integrations: [alpinejs(), sitemap(), htmx(), db()],
integrations: [alpinejs(), sitemap()],
experimental: {
preserveScriptOrder: true,
chromeDevtoolsWorkspace: true,
failOnPrerenderConflict: true,
},
});