-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Relative urls when generating static report #192
Comments
👋 you’re looking for the |
Thanks, @thibaudcolas, this is the right solution so I'll close this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I am using
--build-static
to generate the HTML report in our pipeline. Since I will use Gitlab Pages for the reports and having only one page domain for all branches I move the reports to a relative path.As example when having the Pages URL
https://project.pages.domain.com
, will move the reports tohttps://project.pages.domain.com/<branch>/
. This does not work since all asset urls are using absolute paths in the generated index.html, css and js files.I am currently replacing them with
sed -i 's/\/assets\//assets\//g' public/$UNLIGHTHOUSE_REPORT_PATH/index.html
.This works for the most but some assets are still requested from the absolute URL which results in an 404 response from the webserver.
Example:
Reproduction
No response
System / Nuxt Info
No response
The text was updated successfully, but these errors were encountered: