dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
14 lines (13 loc) • 833 B
TypeScript
import type { FastifyPluginCallback } from 'fastify';
/** App Framework API prefix that should be proxied, see [AppFW URL]/swagger-ui */
export declare const APPFW_API_PATH_PREFIX = "/platform";
/** List of HTTP headers that should be excluded from forwarded requests */
export declare const APPFW_PROXY_IGNORED_HEADERS: string[];
/** The maximum allowed HTTP body size for forwarded responses */
export declare const APPFW_PROXY_MAX_BODY_SIZE = 128000000;
/** Factory function for creating a fastify app framework plugin */
export declare function fastifyAppfwPlugin(): {
plugin: FastifyPluginCallback;
};
/** Checks if the redirectUrl has the same origin as the environmentUrl and if it is directing to the runtime.js endpoint */
export declare function isAllowedRedirect(environmentUrl: string, redirectUrl: string): boolean;