work on porting over contact form from old site, also added initial db support
to use later
This commit is contained in:
parent
8d989ef36f
commit
f641dac69b
12 changed files with 232 additions and 32 deletions
|
|
@ -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,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue