feat: allow custom proxy

This commit is contained in:
didierfranc
2025-01-06 15:58:36 +01:00
parent 2f4f5047a8
commit 2ec2e8fa8e

View File

@@ -7,7 +7,9 @@ export class RemoteEngine implements OLAPEngine {
async exec(query: string) {
try {
const response = await fetch('https://proxy.agx.app/query', {
const proxy =
new URLSearchParams(window.location.search).get('proxy') ?? 'https://proxy.agx.app/query';
const response = await fetch(`${proxy}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'