Skip to content

Fix search by hard-coding Pages URL in CI

Lukas Eipert requested to merge leipert-fix-search into main

Before we made the switch to GitLab Pages for our deployment, we used Pages only for review apps and relied on the CI_PAGES_URL env variable. This is problematic though, because it is not design.gitlab.com, but actually: https://design-gitlab-com-gitlab-org-gitlab-services-f6beaf2fb7fd4cad76.gitlab.io/

Now we use this domain for example in order to pull our index for the search which now will fail due to CORS issues.

If we hard-code the proper URL in CI, we should circumvent the issue.


Working in the review app:

Screenshot_2024-10-08_at_16.35.20

Fixes gitlab-org/gitlab#498092 (closed)

Edited by Lukas Eipert

Merge request reports

Loading