Skip to content

Commit

Permalink
Merge branch 'main' into old-upgrade-guides
Browse files Browse the repository at this point in the history
  • Loading branch information
yanthomasdev authored Jun 24, 2024
2 parents e5b3b04 + 4492136 commit 6d1b92a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/rss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ To enable, add a `<link>` tag with the following attributes to your site's `head
rel="alternate"
type="application/rss+xml"
title="Your Site's Title"
href={`${Astro.site}rss.xml`}
href={new URL("rss.xml", Astro.site)}
/>
```

Expand Down
4 changes: 3 additions & 1 deletion src/content/docs/en/reference/integrations-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,14 @@ Middleware is defined in a package with an `onRequest` function, as with user-de
```js title="@my-package/middleware.js"
import { defineMiddleware } from 'astro:middleware';

export const onRequest = defineMiddleware(async (context, request) => {
export const onRequest = defineMiddleware(async (context, next) => {
if(context.url.pathname === '/some-test-path') {
return Response.json({
ok: true
});
}

return next();
});
```

Expand Down

0 comments on commit 6d1b92a

Please sign in to comment.