Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ pnpm-debug.log*

# vscode (not used)
.vscode/

.dev.vars*
!.dev.vars.example
!.env.example
8 changes: 7 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import minifyInlineScripts from './scripts/minify-inline-scripts.mjs';

import cloudflare from '@astrojs/cloudflare';

// EN is served at the apex of type10.com; DE is built under /de/ and served at the
// apex of type10.de via a Cloudflare Pages Function (see functions/_middleware.ts).
// `site` is the English canonical base; DE canonicals/hreflang are computed per-page
Expand All @@ -12,6 +14,7 @@ export default defineConfig({
site: 'https://type10.com',
trailingSlash: 'never',
build: { format: 'file' },

i18n: {
defaultLocale: 'en',
locales: ['en', 'de'],
Expand All @@ -20,8 +23,11 @@ export default defineConfig({
redirectToDefaultLocale: false,
},
},

// Sitemaps are hand-rolled per locale/domain in src/pages/sitemap.xml.ts and
// src/pages/de/sitemap.xml.ts — @astrojs/sitemap can't express the two-domain
// + localized-slug structure (it would emit type10.com/de/... URLs).
integrations: [react(), mdx(), minifyInlineScripts()],
});

adapter: cloudflare(),
});
Loading