@astrojs/starlight 0.32.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.32.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2904](https://github.com/withastro/starlight/pull/2904) [`ec5ca59`](https://github.com/withastro/starlight/commit/ec5ca5953e62b6ad2de78996d37e08522aa4aa76) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue preventing the use of [rewrites](https://docs.astro.build/en/guides/routing/#rewrites).
8
+
3
9
  ## 0.32.0
4
10
 
5
11
  ### Minor Changes
package/locals.ts CHANGED
@@ -20,6 +20,7 @@ export const onRequest = defineMiddleware(async (context, next) => {
20
20
  * avoid generating route data in this middleware which also runs for non-Starlight route.
21
21
  */
22
22
  export function initializeStarlightRoute(context: APIContext) {
23
+ if ('starlightRoute' in context.locals) return;
23
24
  const state: { routeData: StarlightRouteData | undefined } = { routeData: undefined };
24
25
  Object.defineProperty(context.locals, 'starlightRoute', {
25
26
  get() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",