Skip to content

Commit

Permalink
use vite prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards committed May 22, 2024
1 parent bcfdf39 commit 72e4b3d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ export const ProjectComplianceProvider: React.FC<
return;
}

const cidrAllowList = import.meta.env.PORTER_CIDRS
? import.meta.env.PORTER_CIDRS.split(",")
const cidrAllowList = import.meta.env.VITE_PORTER_CIDRS
? import.meta.env.VITE_PORTER_CIDRS.split(",")
: [];

const updatedKindValues = match(latestContractProto.cluster.kindValues)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ export const ProjectComplianceProvider: React.FC<
return;
}

const cidrAllowList = import.meta.env.PORTER_CIDRS
? import.meta.env.PORTER_CIDRS.split(",")
const cidrAllowList = import.meta.env.VITE_PORTER_CIDRS
? import.meta.env.VITE_PORTER_CIDRS.split(",")
: [];

const updatedKindValues = match(latestContractProto.cluster.kindValues)
Expand Down
3 changes: 1 addition & 2 deletions dashboard/src/shared/auth/ory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { Configuration, FrontendApi } from "@ory/client";
import { type AxiosError } from "axios";
import { useHistory } from "react-router-dom";

export const basePath =
import.meta.env.REACT_APP_ORY_URL || "http://localhost:4000";
export const basePath = import.meta.env.VITE_ORY_URL || "http://localhost:4000";

export const ory = new FrontendApi(
new Configuration({
Expand Down
4 changes: 2 additions & 2 deletions zarf/helm/.dashboardenv
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ API_SERVER=http://localhost:8080

TRUST_ARN=arn:aws:iam::MY_AWS_DEV_ACCOUNT_ID:role/CAPIManagement

# PORTER_CIDRS are a comma-separated list of CIDRs mapping to Porter infra. Used for restricting access to a customer's control plane endpoint
# VITE_PORTER_CIDRS are a comma-separated list of CIDRs mapping to Porter infra. Used for restricting access to a customer's control plane endpoint
# below example is for the office IP
PORTER_CIDRS="135.84.167.61/32"
VITE_PORTER_CIDRS="135.84.167.61/32"

0 comments on commit 72e4b3d

Please sign in to comment.