Build static Astro pilot for Happy Tails

This commit is contained in:
Kevin
2026-09-02 00:54:33 -04:00
parent cfe0a7d98d
commit 56a80951b7
42 changed files with 7171 additions and 134 deletions
+16
View File
@@ -0,0 +1,16 @@
import manifest from '../../sites.json';
import www from '../../sites/www/site.json';
import blog from '../../sites/blog/site.json';
const content = { www, blog };
const key = process.env.SITE_KEY || 'www';
if (!Object.hasOwn(manifest.sites, key) || !Object.hasOwn(content, key)) {
throw new Error(`Unknown SITE_KEY: ${key}`);
}
export const siteKey = key;
export const deployment = manifest.sites[key];
export const site = content[key];
export const isBlog = key === 'blog';
export const isProduction = process.env.DEPLOY_ENV === 'production';