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

Metrics from @layer0/rum is prefetching wrong URL #24

Open
thehansys opened this issue Aug 9, 2022 · 0 comments
Open

Metrics from @layer0/rum is prefetching wrong URL #24

thehansys opened this issue Aug 9, 2022 · 0 comments

Comments

@thehansys
Copy link
Contributor

Hello,
I have created a new NextJS app with @layer0/rum package and I am facing an issue with cache-manifest.js file when I run my app on localhost. The problem is that the rum package adds prefetch link with the wrong URL (/__xdn__/cache-manifest.js) which doesn't exists and returns 404 error.

Here's the repo of created app with the steps how to preproduse the issue. It's just plain NextJS app with @layer0/rum package.

It seems that the problem is caused by if condition on line 115 in https://github.com/layer0-platform/rum/blob/main/src/Metrics.ts file.
When I use 127.0.0.1 address instead of localhost everything works fine.

@thehansys thehansys changed the title Metrics from @llayer0/rum prefetching frong file Metrics from @llayer0/rum is prefetching wrong URL Aug 9, 2022
@thehansys thehansys changed the title Metrics from @llayer0/rum is prefetching wrong URL Metrics from @layer0/rum is prefetching wrong URL Aug 9, 2022
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

No branches or pull requests

1 participant