[yoga-4] add dynamic service page
This commit is contained in:
27
yoga-app/src/app/services/[slug]/page.tsx
Normal file
27
yoga-app/src/app/services/[slug]/page.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import React from "react";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
export default async function ServiceArticlePage({params}: {
|
||||
params: { slug: string}
|
||||
} ) {
|
||||
const servicesByName = await strapiApi.getServicePage(params.slug);
|
||||
// return (
|
||||
// <>
|
||||
// {header && description && <SubHeaderComponent header1={header} description={description} />}
|
||||
// { ourServices && <OurServicesComponent config={ourServices} /> }
|
||||
// { contactUs && <ContactUsComponent contactUs={contactUs} />}
|
||||
// { ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> }
|
||||
// { feedbacks && <FeedbackComponent config={feedbacks} /> }
|
||||
// { blogs && <BlogPostsComponent config={blogs} /> }
|
||||
// { subscribe && <SubscribeComponent config={subscribe} /> }
|
||||
// { footer && <FooterComponent config={footer} /> }
|
||||
// <AosComponent />
|
||||
// </>
|
||||
// );
|
||||
console.info("slug", params.slug);
|
||||
console.info("servicesByName", servicesByName);
|
||||
return (
|
||||
<div>hello world {params.slug}</div>
|
||||
);
|
||||
}
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
Reference in New Issue
Block a user