Closed omariosouto closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated |
---|---|---|---|---|
mariosouto-com | ✅ Ready (Inspect) | Visit Preview | 💬 Add your feedback | Mar 28, 2023 at 2:21PM (UTC) |
🤖 Generated by Copilot at b3b4463
Summary
🌐🛠️🖼️
This pull request refactors the code to use a constant
PUBLIC_SITE_URL
for the site URL value instead of an environment variable. This improves consistency, readability, and maintainability of the code. It also comments out a conditional check for the environment mode in the home page to test some functions.Walkthrough
PUBLIC_SITE_URL
constant todata.js
that exports the site URL from environment variable or default value (link)PUBLIC_SITE_URL
instead ofprocess.env.NEXT_PUBLIC_SITE_URL
inHead
component to generate Open Graph image URL (link,link)PUBLIC_SITE_URL
instead ofprocess.env.NEXT_PUBLIC_SITE_URL
in_document
component to add RSS and JSON feeds links (link,link)PUBLIC_SITE_URL
instead ofprocess.env.NEXT_PUBLIC_SITE_URL
inog.png
API route to render HTML template for Open Graph image (link,link)process.env.NODE_ENV
check inindex
page to rungenerateSitemap
andgenerateRssFeed
functions in development mode (link)