- Move Astro files from dealplustech-astro/ to project root - Update Dockerfile: PORT environment variable (default 80) - Add vite.config.ts with allowedHosts: true - Matches nixpacks behavior for Easypanel deployment - No hardcoded ports or domains
12 lines
777 B
TypeScript
12 lines
777 B
TypeScript
import type { ImageMetadata } from '../types.js';
|
|
/**
|
|
* Extracts the original image query parameters (width, height, format) from the given `URLSearchParams` object
|
|
* and returns them as an object. If any of the required parameters are missing or invalid, the function returns undefined.
|
|
*
|
|
* The `width` and `height` are parsed to integer values.
|
|
*
|
|
* @param {URLSearchParams} params - The `URLSearchParams` object containing the query parameters.
|
|
* @return {Pick<ImageMetadata, 'width' | 'height' | 'format'> | undefined} An object with the original image parameters (width, height, format) or undefined if any parameter is missing.
|
|
*/
|
|
export declare function getOrigQueryParams(params: URLSearchParams): Pick<ImageMetadata, 'width' | 'height' | 'format'> | undefined;
|