work on porting over contact form from old site, also added initial db support

to use later
This commit is contained in:
badblocks 2026-01-06 08:07:19 -08:00
parent 8d989ef36f
commit f641dac69b
No known key found for this signature in database
12 changed files with 232 additions and 32 deletions

View file

@ -1,25 +1,52 @@
import htmx from "astro-htmx";
// @ts-check
import { defineConfig } from "astro/config";
import { defineConfig, envField } from "astro/config";
import alpinejs from "@astrojs/alpinejs";
import partytown from "@astrojs/partytown";
import sitemap from "@astrojs/sitemap";
import bun from "@nurodev/astro-bun";
import db from "@astrojs/db";
// https://astro.build/config
export default defineConfig({
site: "https://badblocks.dev",
trailingSlash: "never",
adapter: bun(),
output: "static",
integrations: [
alpinejs(),
partytown(),
sitemap(),
htmx(),
// sitemap({
// filter: (page) =>
// page !== "https://example.com/secret-vip-lounge-1/" &&
// page !== "https://example.com/secret-vip-lounge-2/",
// }),
],
devToolbar: { enabled: false },
prefetch: {
prefetchAll: true,
},
security: {
checkOrigin: true,
},
server: {
host: true,
port: 4321,
},
env: {
schema: {
ANDROID_SMS_GATEWAY_LOGIN: envField.string({
context: "server",
access: "secret",
}),
ANDROID_SMS_GATEWAY_PASSWORD: envField.string({
context: "server",
access: "secret",
}),
ANDROID_SMS_GATEWAY_RECIPIENT_PHONE: envField.string({
context: "server",
access: "secret",
}),
ANDROID_SMS_GATEWAY_URL: envField.string({
context: "server",
access: "secret",
}),
},
},
integrations: [alpinejs(), sitemap(), htmx(), db()],
experimental: {
preserveScriptOrder: true,
chromeDevtoolsWorkspace: true,
failOnPrerenderConflict: true,
},
});