This commit is contained in:
Vivian Phung 2024-05-22 10:57:20 -04:00
parent c6ebcafaac
commit 92016c8837
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,10 @@ const DeploymentDetailsCard = ({
prodBranchDomains, prodBranchDomains,
}: DeployDetailsCardProps) => { }: DeployDetailsCardProps) => {
const getIconByDeploymentStatus = (status: DeploymentStatus) => { const getIconByDeploymentStatus = (status: DeploymentStatus) => {
if (status === DeploymentStatus.Building || status === DeploymentStatus.Deleting) { if (
status === DeploymentStatus.Building ||
status === DeploymentStatus.Deleting
) {
return <LoadingIcon className="animate-spin" />; return <LoadingIcon className="animate-spin" />;
} }
if (status === DeploymentStatus.Ready) { if (status === DeploymentStatus.Ready) {

View File

@ -19,10 +19,7 @@ const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement, document.getElementById('root') as HTMLElement,
); );
assert( assert(import.meta.env.VITE_SERVER_URL, 'VITE_SERVER_URL is not set in env');
import.meta.env.VITE_SERVER_URL,
'VITE_SERVER_URL is not set in env',
);
const gqlEndpoint = `${import.meta.env.VITE_SERVER_URL}/${SERVER_GQL_PATH}`; const gqlEndpoint = `${import.meta.env.VITE_SERVER_URL}/${SERVER_GQL_PATH}`;
const gqlClient = new GQLClient({ gqlEndpoint }); const gqlClient = new GQLClient({ gqlEndpoint });