Skip to content

Commit

Permalink
Fix env links for 3.18
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky committed Aug 20, 2024
1 parent e8ebb41 commit 8537fba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/cli-login/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ runs:
run: |
jq --null-input \
--arg token "Token $ACCESS_TOKEN" \
'{"token":$token,"telemetry":"false","saleor_env":"staging","cloud_api_url":"https://staging-cloud.saleor.io/platform/api","organization_slug":"saleor","organization_name":"Saleor"}' > ~/.config/saleor.json
'{"token":$token,"telemetry":"false","saleor_env":"staging","cloud_api_url":"https://cloud.staging.saleor.io/platform/api","organization_slug":"saleor","organization_name":"Saleor"}' > ~/.config/saleor.json
2 changes: 1 addition & 1 deletion .github/workflows/cleanEnvironments.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const core = require("@actions/core");

const program = new Command();

const pathToCloudAPI = "https://staging-cloud.saleor.io/platform/api/";
const pathToCloudAPI = "https://cloud.staging.saleor.io/platform/api/";

const snapshotName = "snapshot-automation-tests";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function getTheNewestVersion(token) {
async function getServices(token) {
// us-east-1
const response = await fetch(
`https://staging-cloud.saleor.io/platform/api/regions/us-east-1/services`,
`https://cloud.staging.saleor.io/platform/api/regions/us-east-1/services`,
{
method: "GET",
headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/menu/EnvironmentLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FormattedMessage } from "react-intl";
const UTM_PARAMS = "?utm_source=dashboard&utm_content=sidebar_button";

const stagingLink = (hostname: string) =>
`https://staging-cloud.saleor.io/env/${hostname}${UTM_PARAMS}`;
`https://cloud.staging.saleor.io/env/${hostname}${UTM_PARAMS}`;

const prodLink = (hostname: string) =>
`https://cloud.saleor.io/env/${hostname}${UTM_PARAMS}`;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/menu/Menu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe("Sidebar menu", () => {
it("renders link to the cloud environment on staging", async () => {
// Arrange
const stagingHref =
"https://staging-cloud.saleor.io/env/test.staging.com?utm_source=dashboard&utm_content=sidebar_button";
"https://cloud.staging.saleor.io/env/test.staging.com?utm_source=dashboard&utm_content=sidebar_button";
delete (window as { location?: unknown }).location;
// @ts-expect-error
window.location = { hostname: "test.staging.com" };
Expand Down

0 comments on commit 8537fba

Please sign in to comment.