Use deployment URL for generated metadata
This commit is contained in:
@@ -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
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user