Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: new constants and better analytics #5475

Merged
merged 6 commits into from
Jul 6, 2023

Conversation

ovflowd
Copy link
Member

@ovflowd ovflowd commented Jul 6, 2023

Description

This PR introduces new Environment Variables that allow us both during build-time and runtime to evaluate if the Application is running under Vercel, which allows us to render the Vercel Analytics component conditionally.

This PR also introduces a BASE_URL constant that allows us to add on URLs that before were manually (hard-coded) defined as https://nodejs.org.

This PR also fixes the RSS Feed not having the Base URL as a prefix and the Canonical URL being the wrong route on HtmlHead component.

@ovflowd ovflowd added bug fast-track Fast Tracking PRs infrastructure Issues/PRs related to the Repository Infra labels Jul 6, 2023
@ovflowd ovflowd requested a review from a team as a code owner July 6, 2023 11:00
@vercel
Copy link

vercel bot commented Jul 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2023 11:53am
nodejs-org-stories ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2023 11:53am

@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories July 6, 2023 11:07 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org July 6, 2023 11:08 Inactive
Copy link
Collaborator

@bmuenzenmeyer bmuenzenmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you provide a link to the RSS feed? I cannot quickly find it and am surprised it's not visible on the UI from a quick glance

pages/_app.tsx Outdated Show resolved Hide resolved
@ovflowd
Copy link
Member Author

ovflowd commented Jul 6, 2023

can you provide a link to the RSS feed? I cannot quickly find it and am surprised it's not visible on the UI from a quick glance

It's available on the "view-source" as part of the head. But quick link is https://nodejs.org/en/feed/blog.xml

@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories July 6, 2023 11:38 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org July 6, 2023 11:39 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org July 6, 2023 11:43 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories July 6, 2023 11:43 Inactive
Copy link
Contributor

@shanpriyan shanpriyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Signed-off-by: Claudio Wunder <[email protected]>
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories July 6, 2023 11:52 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org July 6, 2023 11:53 Inactive
@ovflowd
Copy link
Member Author

ovflowd commented Jul 6, 2023

I'm fast-tracking this @nodejs/website

@ovflowd ovflowd merged commit 9129bbf into main Jul 6, 2023
@ovflowd ovflowd deleted the chore/rss-feed-prefix-vercel-analytics branch July 6, 2023 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fast-track Fast Tracking PRs infrastructure Issues/PRs related to the Repository Infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants