跳到內容

Astro.clientAddress is not available in prerendered pages.

本頁內容尚未翻譯。

StaticClientAddressNotAvailable: Astro.clientAddress is only available on pages that are server-rendered.

The Astro.clientAddress property is only available when Server-side rendering is enabled.

To get the user’s IP address in static mode, different APIs such as Ipify can be used in a Client-side script or it may be possible to get the user’s IP using a serverless function hosted on your hosting provider.

See Also:

貢獻

你有哪些想法?

社群