temp: restore active Cloudflare backend API URL for live testing
This commit is contained in:
parent
23c49d45ee
commit
a77dd83d15
2 changed files with 6 additions and 9 deletions
|
|
@ -1,7 +1,5 @@
|
|||
# Netlify API Proxying
|
||||
# Replace YOUR_BACKEND_URL with your live Cloudflare Tunnel URL:
|
||||
# /files https://YOUR_BACKEND_URL.trycloudflare.com/files 200
|
||||
# /upload https://YOUR_BACKEND_URL.trycloudflare.com/upload 200
|
||||
# /uploads/* https://YOUR_BACKEND_URL.trycloudflare.com/uploads/:splat 200
|
||||
# /delete/* https://YOUR_BACKEND_URL.trycloudflare.com/delete/:splat 200
|
||||
/* /index.html 200
|
||||
/files https://feof-signals-fix-chevy.trycloudflare.com/files 200
|
||||
/upload https://feof-signals-fix-chevy.trycloudflare.com/upload 200
|
||||
/uploads/* https://feof-signals-fix-chevy.trycloudflare.com/uploads/:splat 200
|
||||
/delete/* https://feof-signals-fix-chevy.trycloudflare.com/delete/:splat 200
|
||||
/* /index.html 200
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@
|
|||
let selectedFiles = [];
|
||||
|
||||
// API & Key Configuration (configurable via URL param ?api=...&key=... or localStorage)
|
||||
// Public repo uses placeholder values for security
|
||||
const DEFAULT_REMOTE_API = 'https://YOUR_BACKEND_URL.trycloudflare.com';
|
||||
const DEFAULT_REMOTE_API = 'https://feof-signals-fix-chevy.trycloudflare.com';
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
if (urlParams.has('api')) {
|
||||
const customApi = urlParams.get('api').replace(/\/+$/, '');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue