e7795a06ad
* remove pgadmin * remove V3_ENABLED * v3 is always enabled * enfore docker machine presets by default * rename autoremove env var * prefix more k8s-specific env vars * same prefix for all docker settings * improve profile switcher copy * supervisor can load token from file * optional webapp worker group bootstrap * fix error message * fix app origin fallback for otlp endpoint * use pnpm cache for webapp docker builds * increase default org and env concurrency limit to 100 * optional machine preset overrides * improve s3 pre-signing errors * fix DOCKER_ENFORCE_MACHINE_PRESETS bool coercion * shard unit tests * fix for s3-compatible services * optional object store region * Update apps/supervisor/src/workerToken.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix DEPLOY_REGISTRY_HOST example * fix platform mock * remove remaining v3Enabled refs * fix error type.. bad bot --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
10 lines
338 B
TypeScript
10 lines
338 B
TypeScript
import { useTypedRouteLoaderData } from "remix-typedjson";
|
|
import { type loader } from "../root";
|
|
import type { TriggerFeatures } from "~/features.server";
|
|
|
|
export function useFeatures(): TriggerFeatures {
|
|
const routeMatch = useTypedRouteLoaderData<typeof loader>("root");
|
|
|
|
return routeMatch?.features ?? { isManagedCloud: false };
|
|
}
|