Skip to content

Commit b25ae80

Browse files
document preload and routes
1 parent fe59b26 commit b25ae80

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

website/static/schema.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,31 @@
2424
"https://staging-registry.com"
2525
]
2626
},
27+
"preload": {
28+
"description": "List of component dependencies to preload. Preloading components can improve performance by fetching dependencies before they are needed.",
29+
"type": "array",
30+
"items": {
31+
"type": "string",
32+
"description": "Component name or path to preload"
33+
},
34+
"example": [
35+
"header",
36+
"footer",
37+
"common-ui"
38+
]
39+
},
40+
"routes": {
41+
"description": "Custom routing configuration for components. Allows defining custom URL patterns and mappings for component rendering.",
42+
"type": "object",
43+
"additionalProperties": {
44+
"type": "string",
45+
"description": "Route pattern mapped to component name or path"
46+
},
47+
"example": {
48+
"/custom-header": "header-component",
49+
"/api/*": "api-wrapper"
50+
}
51+
},
2752
"development": {
2853
"description": "Development-specific configuration settings for local development and testing.",
2954
"type": "object",

0 commit comments

Comments
 (0)