2026-06-05 14:31:12 -06:00
|
|
|
// @ts-check
|
2026-11-25 15:06:26 -07:00
|
|
|
import { defineConfig, envField } from 'astro/config';
|
2026-06-05 14:31:12 -06:00
|
|
|
import mdx from '@astrojs/mdx';
|
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
2026-07-29 11:09:18 -06:00
|
|
|
import remarkToc from 'remark-toc';
|
2026-06-05 14:31:12 -06:00
|
|
|
import { unified } from '@astrojs/markdown-remark';
|
2026-06-11 00:05:58 -06:00
|
|
|
import { ScriptureLinks } from './src/utils/rehype';
|
2026-06-05 14:31:12 -06:00
|
|
|
|
2026-08-07 14:39:14 -06:00
|
|
|
import icon from 'astro-icon';
|
|
|
|
|
|
2026-06-05 14:31:12 -06:00
|
|
|
// https://astro.build/config
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
trailingSlash: "always",
|
2026-12-05 13:57:16 -07:00
|
|
|
site: "https://itsjustus.faith",
|
2026-08-07 14:39:14 -06:00
|
|
|
integrations: [mdx(), icon()],
|
2026-06-05 14:31:12 -06:00
|
|
|
markdown: {
|
|
|
|
|
processor: unified({
|
2026-07-29 11:09:18 -06:00
|
|
|
remarkPlugins: [remarkToc],
|
2026-06-11 00:05:58 -06:00
|
|
|
rehypePlugins: [ScriptureLinks],
|
2026-06-05 14:31:12 -06:00
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
vite: {
|
|
|
|
|
plugins: [tailwindcss()],
|
|
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
host: true,
|
|
|
|
|
port: 8080,
|
|
|
|
|
},
|
2026-11-25 15:06:26 -07:00
|
|
|
env: {
|
|
|
|
|
schema: {
|
|
|
|
|
REVISION: envField.string({context: "server", access: "public", optional: true, default: "DEV"}),
|
2026-11-25 23:00:12 -07:00
|
|
|
FULL_REVISION: envField.string({context: "server", access: "public", optional: true, default: "DEV"}),
|
|
|
|
|
REV_COUNT: envField.number({context: "server", access: "public", optional: true, default: 0})
|
2026-11-25 15:06:26 -07:00
|
|
|
}
|
|
|
|
|
}
|
2026-12-05 13:57:16 -07:00
|
|
|
});
|