Skip to content

Commit

Permalink
Merge branch 'main' into i18n/fr-update-server-side-rendering.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
yanthomasdev authored Oct 3, 2024
2 parents 3d9cb1e + 8f121b6 commit 12dd5d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/tutorial/FeedbackButton.astro
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ const instanceId = Math.round(Math.random() * 10e9).toString(36);
flex: 1;
font: inherit;
padding: 0.5rem;
border: 0;
border-radius: 2rem;
cursor: pointer;
font-size: var(--sl-text-sm);
Expand Down
4 changes: 1 addition & 3 deletions src/content/docs/en/guides/server-side-rendering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ In `server` and `hybrid` modes, a page or API endpoint can check, set, get, and
The example below updates the value of a cookie for a page view counter:
```astro title="src/pages/index.astro" {4,5,9}
```astro title="src/pages/index.astro" {4,5,10}
---
let counter = 0
Expand Down Expand Up @@ -324,5 +324,3 @@ A server endpoint, also known as an **API route**, is a special function exporte
The function takes an [endpoint context](/en/reference/api-reference/#endpoint-context) and returns a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response).
To learn more, see our [Endpoints Guide](/en/guides/endpoints/#server-endpoints-api-routes).

0 comments on commit 12dd5d4

Please sign in to comment.