azion
Version:
Azion Packages for Edge Computing.
46 lines (42 loc) • 1.75 kB
TypeScript
import { AzionRules } from 'azion/config';
/**
* Creates rules for a Multi Page Application (MPA) on Azion Platform.
* This configuration is optimized for static site hosting with proper routing and asset delivery.
*
* Features:
* - Static asset delivery with caching
* - Proper handling of directory and subpath routing
* - Automatic index.html handling for clean URLs
*
* @param options Configuration options for the MPA rules
* @param options.connector The name of the edge connector to use
* @param options.application The name of the application to use
* @param options.staticExtensions List of file extensions to be treated as static assets
* @returns Array of rules configured for MPA hosting on Azion Edge
*/
export declare function createMPARules(options?: {
connector?: string;
application?: string;
staticExtensions?: string[];
}): AzionRules;
/**
* Creates rules for a Single Page Application (SPA) on Azion Platform.
* This configuration is optimized for SPA hosting with proper routing and asset delivery.
*
* Features:
* - Static asset delivery with caching
* - Client-side routing support
* - Automatic fallback to index.html for all routes
*
* @param options Configuration options for the SPA rules
* @param options.connector The name of the edge connector to use
* @param options.application The name of the application to use
* @param options.staticExtensions List of file extensions to be treated as static assets
* @returns Array of rules configured for SPA hosting on Azion Edge
*/
export declare function createSPARules(options?: {
connector?: string;
application?: string;
staticExtensions?: string[];
}): AzionRules;
export { }