Skip to content

Commit db35051

Browse files
Test cf redirects
1 parent 3bf1b9d commit db35051

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

web/public/_redirects

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/wiki/ /
2+
/wiki/* /:splat
3+
4+
/element /Element
5+
/element/* /:splat
6+
7+
/Element/ /Element
8+
/Element/* /:splat
9+
10+
/GetElementPosition /getElementPosition

web/src/content.config.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
import { defineCollection, z } from 'astro:content';
2-
import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders';
3-
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
1+
import { defineCollection } from 'astro:content';
2+
import { docsLoader } from '@astrojs/starlight/loaders';
3+
import { docsSchema } from '@astrojs/starlight/schema';
44
import { glob } from 'astro/loaders';
55

66
export const collections = {
77
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
8-
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema({
9-
extend: z.object({
10-
'custom.label': z.string().optional()
11-
})
12-
}) }),
138
elements: defineCollection({
149
loader: glob({
1510
pattern: "**/*.yaml",

web/src/pages/_redirects.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)