- Add metadata to login and login-verify pages to prevent indexing. - Update robots.txt to disallow additional sensitive paths. - Enhance sitemap generation to filter by city and include accurate last modified dates. - Refactor canonical URL generation to support multi-domain architecture, ensuring self-canonicalization for city domains. - Remove deprecated CanonicalHandler component and streamline canonical URL handling. - Introduce safe JSON-LD output to prevent XSS vulnerabilities. - Add payment layout with appropriate metadata to prevent indexing. - Conduct a comprehensive technical SEO audit and implement necessary fixes across the application.
31 lines
738 B
JavaScript
31 lines
738 B
JavaScript
import AppointmentPage from "@/components/appointment";
|
|
import { getStateInfo } from "@/lib/getStateInfo";
|
|
import { axiosInstance } from "@/lib/req";
|
|
|
|
export const metadata = {
|
|
robots: { index: false, follow: false },
|
|
};
|
|
|
|
async function Appointment({ params }) {
|
|
const { doctorId } = await params;
|
|
const { matchedCity } = await getStateInfo();
|
|
const API_URL = process.env.NEXT_PUBLIC_API_URL;
|
|
|
|
let doctor = null;
|
|
|
|
try {
|
|
const doctorRes = await axiosInstance.get(`${API_URL}/api/v1/doctor/${doctorId}`);
|
|
doctor = doctorRes.data?.data?.data;
|
|
} catch (error) {}
|
|
|
|
return (
|
|
<AppointmentPage
|
|
doctor={doctor}
|
|
disabledDates={[]}
|
|
matchedCity={matchedCity}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default Appointment;
|