fix: host NASA Earth texture locally to avoid CORS

NASA's image server blocks cross-origin requests. Downloaded the
3600x1800 Black Marble texture and serve it from web/public/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel 2026-03-06 09:50:29 +01:00
parent a9f81d66fd
commit a1a49f0ec3
2 changed files with 1 additions and 1 deletions

View file

@ -180,7 +180,7 @@ export default function RadioTab({ data }: { data: any }) {
const initAccent = initStyle.getPropertyValue('--accent').trim() || '#e67e22';
const globe = new Globe(containerRef.current)
.globeImageUrl('//eoimages.gsfc.nasa.gov/images/imagerecords/79000/79765/dnb_land_ocean_ice.2012.3600x1800.jpg')
.globeImageUrl('/earth-night.jpg')
.backgroundColor('rgba(0,0,0,0)')
.atmosphereColor(`rgba(${initRgb}, 0.25)`)
.atmosphereAltitude(0.12)