From a5e93f2afcb9b40dd659b79a44109105c1d32fda Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 2 Jan 2025 16:46:30 -0600 Subject: [PATCH] debug log RAILWAY_PUBLIC_DOMAIN --- frontend/astro.config.mjs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/astro.config.mjs b/frontend/astro.config.mjs index b246d52..8ba99fd 100644 --- a/frontend/astro.config.mjs +++ b/frontend/astro.config.mjs @@ -7,14 +7,22 @@ import react from "@astrojs/react"; // TODO: Add linting to build steps +console.log(import.meta.env); // https://astro.build/config + export default defineConfig({ build: { assets: "assets", }, site: import.meta.env.DEV ? "https://localhost:4321" - : `https://${import.meta.env.RAILWAY_PUBLIC_DOMAIN}`, + : // @ts-ignore + `https://${ + import.meta.env.RAILWAY_PUBLIC_DOMAIN ?? + (() => { + throw new Error("nullish"); + })() + }`, integrations: [ tailwind(), sitemap({