Use deployment URL for generated metadata
This commit is contained in:
@@ -6,6 +6,10 @@ COPY package*.json ./
|
|||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
ARG SITE_URL
|
||||||
|
ARG COOLIFY_URL
|
||||||
|
ENV SITE_URL=${SITE_URL}
|
||||||
|
ENV COOLIFY_URL=${COOLIFY_URL}
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|||||||
+3
-1
@@ -1,7 +1,9 @@
|
|||||||
import { defineConfig } from "astro/config";
|
import { defineConfig } from "astro/config";
|
||||||
|
|
||||||
|
const siteUrl = (process.env.SITE_URL || process.env.COOLIFY_URL || "https://heidrich-bedachung.de").replace(/\/$/, "");
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: "https://heidrich-bedachung.de",
|
site: siteUrl,
|
||||||
output: "static",
|
output: "static",
|
||||||
trailingSlash: "always",
|
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 = {
|
export const site = {
|
||||||
name: "Heinz Heidrich GmbH",
|
name: "Heinz Heidrich GmbH",
|
||||||
description:
|
description:
|
||||||
"Dachdecker- und Bauklempnerbetrieb aus Tostedt für Hamburg, Bremen, Buchholz, die Nordheide und Umgebung.",
|
"Dachdecker- und Bauklempnerbetrieb aus Tostedt für Hamburg, Bremen, Buchholz, die Nordheide und Umgebung.",
|
||||||
url: "https://heidrich-bedachung.de",
|
url: siteUrl,
|
||||||
phone: "04182 5802",
|
phone: "04182 5802",
|
||||||
phoneHref: "tel:+4941825802",
|
phoneHref: "tel:+4941825802",
|
||||||
fax: "04182 21480",
|
fax: "04182 21480",
|
||||||
|
|||||||
Reference in New Issue
Block a user