Added the new "Best frnd" photo to the memory gallery - the lovely cityscape night photo with the blue floral dress and white shirt. The gallery now has 23 photos total documenting all the special moments.
An error occurred during deployment. Please fix:
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Retrieving list of deployment files...
Previous build caches not available.
Downloading 89 deployment files...
...
https://nextjs.org/telemetry
▲ Next.js 16.2.4 (Turbopack)
Creating an optimized production build ...
I see the issue - the hero section is using window.innerHeight during server-side rendering, which causes a build error since window is not available on the server. Let me fix this:
I can see the issue - the balloons animation uses window.innerHeight directly in the JSX which causes the SSR error. I need to use a state variable instead that gets set after mount:
Fixed the SSR issue by replacing the direct window.innerHeight reference with a state variable windowHeight that gets initialized with a default value of 1000 and then updated to the actual window height after the component mounts on the client. This prevents the "window is not defined" error during server-side rendering while maintaining the same balloon animation behavior.