Files
networking-toolbox/src/lib/utils/deployment.ts
T

15 lines
343 B
TypeScript

/**
* Deployment environment utilities
*/
/**
* Check if the app is deployed to a static host (without API support)
*/
export const isStaticDeployment = __DEPLOY_ENV__ === 'static';
/**
* Check if API endpoints are available
*/
// export const hasApiEndpoints = !isStaticDeployment;
export const hasApiEndpoints = !isStaticDeployment;