- Add Astro native i18n routing (prefixDefaultLocale: false) - Introduce GeneratorLayout to deduplicate all generator pages - Enrich generator data with pageTitle, ruPageTitle, howTo/whenTo arrays - Make EN and RU generator pages identical using @/ path aliases - Extract analytics (Yandex Metrika + Top.Mail.Ru) into Analytics.astro - Move tracker IDs to src/data/config.ts, inject via define:vars - Migrate generator metadata to Content Collections (src/content/generators/*.json) - Add Zod schema with .strict() validation in src/lib/generator-schema.ts - Update CLAUDE.md with new conventions
19 lines
393 B
JavaScript
19 lines
393 B
JavaScript
import { defineConfig } from "astro/config";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import sitemap from "@astrojs/sitemap";
|
|
|
|
export default defineConfig({
|
|
site: "https://randify.pro",
|
|
integrations: [sitemap()],
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
},
|
|
i18n: {
|
|
defaultLocale: "en",
|
|
locales: ["en", "ru"],
|
|
routing: {
|
|
prefixDefaultLocale: false,
|
|
},
|
|
},
|
|
});
|