Astro.clientAddress is not available in static mode.
이 컨텐츠는 아직 번역되지 않았습니다.
StaticClientAddressNotAvailable:
Astro.clientAddress
is only available when usingoutput: 'server'
oroutput: 'hybrid'
. Update your Astro config if you need SSR features.
What went wrong?
Section titled What went wrong?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:
Error Reference