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

RSS feed links to vercel.app domain #5574

Closed
trogau opened this issue Jul 30, 2023 · 7 comments
Closed

RSS feed links to vercel.app domain #5574

trogau opened this issue Jul 30, 2023 · 7 comments
Assignees
Labels

Comments

@trogau
Copy link

trogau commented Jul 30, 2023

URL:

https://nodejs.org/en/feed/vulnerability.xml

Browser Name:

Firefox

Browser Version:

115.0.3

Operating System:

Windows 10

How to reproduce the issue:

The RSS feed at https://nodejs.org/en/feed/vulnerability.xml currently does not link directly to nodejs.org but instead a specific Vercel domain - here's a snippet from the start of the feed as it stands right now:

<channel>
<title>Node.js Blog: Vulnerability Reports</title>
<link>
https://nodejs-jqm8ptz6n-openjs.vercel.app/en/feed/vulnerability.xml
</link>
<description>
</description>
<lastBuildDate>Sun, 30 Jul 2023 21:40:50 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en</language>
<item>
<title>Tuesday June 20 2023 Security Releases</title>
<link>
https://nodejs-jqm8ptz6n-openjs.vercel.app/en/blog/vulnerability/june-2023-security-releases
</link>
<guid>/blog/vulnerability/june-2023-security-releases</guid>
<pubDate>Tue, 20 Jun 2023 14:30:00 GMT</pubDate>
</item>

Noticed this as my reader (Feedly) weirdly put up June's security release notice today. Old stored links in Feedly refer to nodejs.org as expected.

@trogau trogau added the bug label Jul 30, 2023
@ovflowd
Copy link
Member

ovflowd commented Jul 31, 2023

Noticed. Will investigate. We get the deployment URL directly from Vercel, so funny that it does not use the assigned domain as Public URLs on Production.

It could also be a temporary bug in one deployment. I'll keep an eye, and monitor. The fix is simple if actions are needed. (Override the Env variable)

@ovflowd ovflowd self-assigned this Jul 31, 2023
@ovflowd
Copy link
Member

ovflowd commented Jul 31, 2023

I've redeployed with a cache purge. This should have been fixed now.

Thanks for reporting!

@ovflowd ovflowd closed this as completed Jul 31, 2023
@MattIPv4
Copy link
Member

👀 https://nodejs.org/en/feed/blog.xml very much still contains Vercel URLs

@ovflowd
Copy link
Member

ovflowd commented Jul 31, 2023

This was fixed at the moment I wrote it was fixed.

I don’t understand why it came back. Genuinely curious 🤔

@MattIPv4
Copy link
Member

Is it worth just setting a custom NEXT_PUBLIC_VERCEL_URL for production, or changing the order in https://github.com/nodejs/nodejs.org/blob/main/next.constants.mjs so that the custom NEXT_PUBLIC_BASE_URL is preferred if set?

@ovflowd
Copy link
Member

ovflowd commented Jul 31, 2023

Feel free to make a PR 😀

That could be the fix! But I also wonder if the Serverless Functions have their own env variables, hence why my change didn’t take effect? Let’s see 👀

@ovflowd
Copy link
Member

ovflowd commented Aug 2, 2023

This got permanently fixed with #5599 and the PR adopted your suggestion, @MattIPv4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants