Skip to content

feat(footer): implement dynamic client-side copyright year and add nu… - #1

Open
Evren-os wants to merge 1 commit into
raexera:mainfrom
Evren-os:patch-copyright-year-auto-update
Open

feat(footer): implement dynamic client-side copyright year and add nu…#1
Evren-os wants to merge 1 commit into
raexera:mainfrom
Evren-os:patch-copyright-year-auto-update

Conversation

@Evren-os

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

Copy link
Copy Markdown

…ll check for copyright year element

@Evren-os

Evren-os commented Apr 2, 2025

Copy link
Copy Markdown
Author

{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