70bf21e064
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
16 lines
550 B
TypeScript
16 lines
550 B
TypeScript
export const REDIRECTS_VERSION = 1;
|
|
export const HEADERS_VERSION = 2;
|
|
export const ANALYTICS_VERSION = 1;
|
|
export const ROUTES_JSON_VERSION = 1;
|
|
|
|
export const PERMITTED_STATUS_CODES = new Set([200, 301, 302, 303, 307, 308]);
|
|
export const HEADER_SEPARATOR = ":";
|
|
export const MAX_LINE_LENGTH = 2000;
|
|
export const MAX_HEADER_RULES = 100;
|
|
export const MAX_DYNAMIC_REDIRECT_RULES = 100;
|
|
export const MAX_STATIC_REDIRECT_RULES = 2000;
|
|
export const UNSET_OPERATOR = "! ";
|
|
|
|
export const SPLAT_REGEX = /\*/g;
|
|
export const PLACEHOLDER_REGEX = /:[A-Za-z]\w*/g;
|