Skip to content

Conversation

@Evren-os
Copy link

@Evren-os Evren-os commented Apr 1, 2025

…ll check for copyright year element

@Evren-os
Copy link
Author

Evren-os commented Apr 2, 2025

{new Date().getFullYear()} gets evaluated at build time since Astro defaults to static sites... when you deploy (like on Vercel) the year stays locked to the build time. if you commit in your repo, the footer's copyright year updates with the commit, but it won't auto update. so i moved that logic to the client-side using javascript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant