personal-site/astro.config.mjs
badbl0cks 1fbcbf772a
All checks were successful
Build And Deploy / build-and-deploy (push) Successful in 1m22s
Enable WireGuard service, change HTTPFetchClient to use wireguard proxy, and add required env vars
Add WireGuard-related env variables to .env.example (addresses,
keys, endpoint, DNS)
Resolve WIREGUARD_ENDPOINT_HOST to WIREGUARD_ENDPOINT_IP in
cicd/scripts/deploy.sh and write it to .env, failing if unresolved
Un-comment and enable the wireguard service in docker-compose.yml
Remove an obsolete commented workflow snippet
2026-02-07 17:44:58 -08:00

68 lines
1.6 KiB
JavaScript

import htmx from "astro-htmx";
// @ts-check
import { defineConfig, envField } from "astro/config";
import alpinejs from "@astrojs/alpinejs";
import sitemap from "@astrojs/sitemap";
import bun from "@nurodev/astro-bun";
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
adapter: node({
mode: "standalone",
}),
// adapter: bun(),
// output: "static",
compressHTML: false,
devToolbar: { enabled: false },
prefetch: {
prefetchAll: true,
},
security: {
checkOrigin: false,
},
session: {
driver: "lru-cache",
ttl: 3600,
maxEntries: 1000,
},
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",
}),
OTP_SUPER_SECRET_SALT: envField.string({
context: "server",
access: "secret",
}),
},
},
integrations: [alpinejs(), sitemap(), htmx(), db()],
experimental: {
preserveScriptOrder: true,
chromeDevtoolsWorkspace: true,
failOnPrerenderConflict: true,
},
});