Use deployment URL for generated metadata

This commit is contained in:
2026-07-07 19:25:41 +02:00
parent bc98dd0cb5
commit c3e74bfbf8
3 changed files with 10 additions and 2 deletions
+4
View File
@@ -6,6 +6,10 @@ COPY package*.json ./
RUN npm ci
COPY . .
ARG SITE_URL
ARG COOLIFY_URL
ENV SITE_URL=${SITE_URL}
ENV COOLIFY_URL=${COOLIFY_URL}
RUN npm run build
FROM nginx:alpine
+3 -1
View File
@@ -1,7 +1,9 @@
import { defineConfig } from "astro/config";
const siteUrl = (process.env.SITE_URL || process.env.COOLIFY_URL || "https://heidrich-bedachung.de").replace(/\/$/, "");
export default defineConfig({
site: "https://heidrich-bedachung.de",
site: siteUrl,
output: "static",
trailingSlash: "always",
});
+3 -1
View File
@@ -1,8 +1,10 @@
const siteUrl = (process.env.SITE_URL || process.env.COOLIFY_URL || "https://heidrich-bedachung.de").replace(/\/$/, "");
export const site = {
name: "Heinz Heidrich GmbH",
description:
"Dachdecker- und Bauklempnerbetrieb aus Tostedt für Hamburg, Bremen, Buchholz, die Nordheide und Umgebung.",
url: "https://heidrich-bedachung.de",
url: siteUrl,
phone: "04182 5802",
phoneHref: "tel:+4941825802",
fax: "04182 21480",