Files
vue-journal-layer/.playground/nuxt.config.ts
Jakub Zych 1e05efcd25 test: the playground's HTML sitemap paths per locale
- seo.htmlSitemap.paths en /sitemap, pl /pl/mapa-strony, the full-path
  rule for i18n apps; the build now holds exactly seo-sitemap-en___en,
  seo-sitemap-group-en___en, seo-sitemap-pl___pl and
  seo-sitemap-group-pl___pl (L4 WR-05 evidence)
2026-11-04 22:49:58 +01:00

26 lines
1.1 KiB
TypeScript

// Local playground: an app that only extends the layer, with en as the
// default locale and pl prefixed, the same shape the git-install check uses.
export default defineNuxtConfig({
extends: ['..'],
compatibilityDate: '2025-07-15',
// Route-cached like a real host, so testing/purge-check.mjs can prove a
// purge clears cached pages.
routeRules: { '/**': { swr: 300 } },
// The search page is opt-in; the playground turns it on for the smoke.
// One post per category page, so the news category has 12 pages and the
// smoke sees first, last and gap items.
journal: { routes: { search: '/search' }, perPage: { category: 1 } },
// The HTML sitemap paths as an i18n app gives them: each locale's full
// path, the prefixed one included (vue-seo-layer README). The layer
// registers each locale's pages once, at that path, named for the locale.
seo: { htmlSitemap: { paths: { en: '/sitemap', pl: '/pl/mapa-strony' } } },
i18n: {
strategy: 'prefix_except_default',
defaultLocale: 'en',
locales: [
{ code: 'en', language: 'en-US' },
{ code: 'pl', language: 'pl-PL' },
],
},
})