import type { PageLoad } from './$types';
import type { PageMeta } from '$lib/seo';
import { baseJsonLdGraph } from '$lib/data/json-ld/baseJsonLdGraphs';
import { pageContent } from '$lib/data/services/fractional-cto-for-early-stage-saas/content';
import { fractionalCtoForEarlyStageSaaSServiceJsonLdGraph } from '$lib/data/json-ld/servicesJsonLdGraphs';
import { fractionalCtoForEarlyStageSaaSPageJsonLdGraph } from '$lib/data/json-ld/webpageJsonLdGraphs';

const BASE = 'https://mifi.ventures';
const PATH = '/services/fractional-cto-for-early-stage-saas';
const PAGE_URL = `${BASE}${PATH}`;

export const load: PageLoad = () => {
    const { meta } = pageContent;
    const servicePageMeta: PageMeta = {
        title: meta.title,
        description: meta.description,
        canonical: PAGE_URL,
        jsonLd: [
            ...baseJsonLdGraph,
            fractionalCtoForEarlyStageSaaSPageJsonLdGraph,
            fractionalCtoForEarlyStageSaaSServiceJsonLdGraph,
        ],
    };
    return { meta: servicePageMeta };
};
