# Content - Introduce the `workspaceUrls` property. It contains two sub-properties: `customUrl, subdomainUrl`. These endpoints are used to access the workspace. Even if the `workspaceUrls` is invalid for multiple reasons, the `subdomainUrl` remains valid. - Introduce `ResolveField` workspaceEndpoints to avoid unnecessary URL computation on the frontend part. - Add a `forceSubdomainUrl` to avoid custom URL using a query parameter
6 lines
188 B
TypeScript
6 lines
188 B
TypeScript
import { WorkspaceUrls } from '~/generated/graphql';
|
|
|
|
export const getWorkspaceUrl = (workspaceUrls: WorkspaceUrls) => {
|
|
return workspaceUrls.customUrl ?? workspaceUrls.subdomainUrl;
|
|
};
|