6 Commits

Author SHA1 Message Date
Roland Schneider
8324294853 add debug logging for service slug and service page retrieval 2025-07-09 15:09:51 +02:00
Roland Schneider
3bbd9dcbf6 [yoga-11] add common type and add logo 2025-07-09 15:09:51 +02:00
Roland Schneider
ca60a9a2f4 [yoga-11] add common type and add logo 2025-07-09 15:09:51 +02:00
90a7dbf827 [ci-skip] New Prod yoga-app deployment version: 202507041949.cc6d814 2025-07-04 19:52:21 +00:00
Jenkins
fac8dd6f19 [ci-skip] Update version to 202507041949.cc6d814 2025-07-04 19:51:03 +00:00
Jenkins
cc6d8147de [ci-skip] Update version to 202505291116.217a26c 2025-07-04 19:49:41 +00:00
4 changed files with 9 additions and 4 deletions

View File

@@ -1 +1 @@
202505262234.f0f0a97 202505291116.217a26c

View File

@@ -1 +1 @@
202505232026.6bb9365 202507041949.cc6d814

View File

@@ -21,7 +21,7 @@ services:
networks: networks:
- yogastic - yogastic
app: app:
image: docker.rschneider.hu/infra/yoga-app:202505262234.f0f0a97 image: docker.rschneider.hu/infra/yoga-app:202505291116.217a26c
platform: linux/amd64 platform: linux/amd64
ports: ports:
- '4025:3000' - '4025:3000'
@@ -47,7 +47,7 @@ services:
- proxy_shared - proxy_shared
- yogastic - yogastic
cms: cms:
image: docker.rschneider.hu/infra/yoga-cms:202505232026.6bb9365 image: docker.rschneider.hu/infra/yoga-cms:202507041949.cc6d814
ports: ports:
- '4026:1337' - '4026:1337'
environment: environment:

View File

@@ -27,16 +27,21 @@ export default async function ServiceArticlePage({params}: {
}) { }) {
const {slug} = await params const {slug} = await params
console.info("service slug",slug);
const servicePage = await strapiApi.getServicePage(); const servicePage = await strapiApi.getServicePage();
if (!servicePage) { if (!servicePage) {
return notFound() return notFound()
} }
console.info("Servicepage found");
const {subscribeNow, footer, common} = servicePage; const {subscribeNow, footer, common} = servicePage;
const servicesByName = await strapiApi.getService(slug); const servicesByName = await strapiApi.getService(slug);
console.info("servicesByName",servicesByName);
if (!servicesByName || servicesByName.length === 0) { if (!servicesByName || servicesByName.length === 0) {
return notFound(); return notFound();
} }
const selectedService = servicesByName[0]; const selectedService = servicesByName[0];
console.info("selected service",selectedService)
if ( !selectedService?.article?.length ) { if ( !selectedService?.article?.length ) {
return notFound(); return notFound();
} }