dev work
This commit is contained in:
parent
6e7977997e
commit
8aa67df5c7
22 changed files with 300 additions and 240 deletions
|
|
@ -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,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue