Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BETA] ci: update error reference docs #10099

Open
wants to merge 1 commit into
base: 5.0.0-beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ The currently configured adapter does not support server-side rendering, which i
Depending on your adapter, there may be a different entrypoint to use for server-side rendering. For example, the `@astrojs/vercel` adapter has a `@astrojs/vercel/static` entrypoint for static rendering, and a `@astrojs/vercel/serverless` entrypoint for server-side rendering.

**See Also:**
- [Server-side Rendering](/en/guides/on-demand-rendering/)
- [Server-side Rendering](/en/guides/server-side-rendering/)


Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ In [Static Mode](/en/guides/routing/#static-ssg-mode), all routes must be determ
**See Also:**
- [Dynamic Routes](/en/guides/routing/#dynamic-routes)
- [`getStaticPaths()`](/en/reference/api-reference/#getstaticpaths)
- [Server-side Rendering](/en/guides/on-demand-rendering/)
- [Server-side Rendering](/en/guides/server-side-rendering/)


Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
To use server-side rendering, an adapter needs to be installed so Astro knows how to generate the proper output for your targeted deployment platform.

**See Also:**
- [Server-side Rendering](/en/guides/on-demand-rendering/)
- [Server-side Rendering](/en/guides/server-side-rendering/)


Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ return Astro.redirect('/login');
```

**See Also:**
- [Response](/en/guides/on-demand-rendering/#response)
- [Response](/en/guides/server-side-rendering/#response)


Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
The `Astro.clientAddress` property cannot be used inside prerendered routes.

**See Also:**
- [Opting-in to pre-rendering](/en/guides/on-demand-rendering/)
- [Opting-in to pre-rendering](/en/guides/server-side-rendering/#opting-in-to-pre-rendering-in-server-mode)
- [Astro.clientAddress](/en/reference/api-reference/#astroclientaddress)


Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
> **StaticClientAddressNotAvailable**: `Astro.clientAddress` is only available on pages that are server-rendered.

## What went wrong?
The `Astro.clientAddress` property is only available when [Server-side rendering](/en/guides/on-demand-rendering/) is enabled.
The `Astro.clientAddress` property is only available when [Server-side rendering](/en/guides/server-side-rendering/) is enabled.

To get the user's IP address in static mode, different APIs such as [Ipify](https://www.ipify.org/) can be used in a [Client-side script](/en/guides/client-side-scripts/) or it may be possible to get the user's IP using a serverless function hosted on your hosting provider.

**See Also:**
- [Enabling SSR in Your Project](/en/guides/on-demand-rendering/)
- [Enabling SSR in Your Project](/en/guides/server-side-rendering/)
- [Astro.clientAddress](/en/reference/api-reference/#astroclientaddress)


Loading