refactor: move all TypeScript interfaces to centralized src/js/types folder
- Create type files with barrel export via @/types alias - Update logic files to use centralized type imports
This commit is contained in:
@@ -16,7 +16,7 @@ compatibility_date = "2024-01-01"
|
||||
# - Note: Secret is visible in frontend JS, so provides limited protection
|
||||
#
|
||||
# 2. RATE LIMITING (Recommended - requires KV)
|
||||
# - Create KV namespace: npx wrangler kv:namespace create "RATE_LIMIT_KV"
|
||||
# - Create KV namespace: npx wrangler kv namespace create "RATE_LIMIT_KV"
|
||||
# - Uncomment the kv_namespaces section below with the returned ID
|
||||
# - Limits: 60 requests per IP per minute
|
||||
#
|
||||
@@ -31,13 +31,9 @@ compatibility_date = "2024-01-01"
|
||||
# =============================================================================
|
||||
# KV NAMESPACE FOR RATE LIMITING
|
||||
# =============================================================================
|
||||
# To enable rate limiting:
|
||||
# 1. Run: npx wrangler kv:namespace create "RATE_LIMIT_KV"
|
||||
# 2. Copy the returned id and uncomment the section below
|
||||
#
|
||||
# [[kv_namespaces]]
|
||||
# binding = "RATE_LIMIT_KV"
|
||||
# id = "YOUR_KV_NAMESPACE_ID_HERE"
|
||||
[[kv_namespaces]]
|
||||
binding = "RATE_LIMIT_KV"
|
||||
id = "b88e030b308941118cd484e3fcb3ae49"
|
||||
|
||||
# Optional: Custom domain routing
|
||||
# routes = [
|
||||
@@ -46,4 +42,4 @@ compatibility_date = "2024-01-01"
|
||||
|
||||
# Optional: Environment variables (for non-secret config)
|
||||
# [vars]
|
||||
# ALLOWED_ORIGINS = "https://www.bentopdf.com,https://bentopdf.com"
|
||||
# ALLOWED_ORIGINS = "https://www.bentopdf.com,https://bentopdf.com"
|
||||
Reference in New Issue
Block a user