Files
sorsfonalak/services/frontend/src/app/sitemap.ts
T
fecoandClaude Opus 5.5 985b1e872d
CI / test (push) Successful in 1m44s
CI / build (push) Successful in 5m37s
CI / deploy (push) Skipped
Free birth chart instead of the sign calculator; free tools in the header
/szuletesi-horoszkop (was /aszcendens-kalkulator) shows the whole natal
chart without an account: the wheel, Sun/Moon/Ascendant with links to
the sign pages, the positions, houses, aspect grid and aspect list, the
same views as the chart pages but without the AI parts. A calculation
only, nothing saved, still 30 an hour per address (POST /v1/public/chart).
The typed birth data are offered on the profile after sign-up.

The visitors' header gets a separate 'Ingyenes' group (birth chart,
signs) next to the paid sections, on phones in its own row; the home
page links them under the hero buttons and in an 'Ingyenes' band.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-21 20:54:57 +00:00

22 lines
1.2 KiB
TypeScript

import type { MetadataRoute } from "next";
import { ZODIAC } from "@/content/zodiac";
import { siteUrl } from "@/lib/share";
/** The public pages for search engines; everything else needs a login. */
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const base = await siteUrl();
const privacy = { languages: { hu: `${base}/adatvedelem`, en: `${base}/privacy` } };
return [
{ url: `${base}/`, changeFrequency: "weekly", priority: 1 },
{ url: `${base}/pelda`, changeFrequency: "monthly", priority: 0.8 },
{ url: `${base}/kartyajoslas/pelda`, changeFrequency: "monthly", priority: 0.7 },
{ url: `${base}/szuletesi-horoszkop`, changeFrequency: "monthly", priority: 0.9 },
{ url: `${base}/csillagjegyek`, changeFrequency: "monthly", priority: 0.8 },
...ZODIAC.map((z) => ({ url: `${base}/csillagjegyek/${z.slug}`, changeFrequency: "monthly" as const, priority: 0.7 })),
{ url: `${base}/aszf`, changeFrequency: "yearly", priority: 0.2 },
{ url: `${base}/adatvedelem`, changeFrequency: "yearly", priority: 0.2, alternates: privacy },
{ url: `${base}/privacy`, changeFrequency: "yearly", priority: 0.2, alternates: privacy },
];
}