https frontend support
This commit is contained in:
parent
4ddac6b8f2
commit
c4c15bfbb2
1 changed files with 2 additions and 2 deletions
|
|
@ -43,9 +43,9 @@ async function proxyRequest(
|
||||||
const backendSSL= process.env.OPENRAG_BACKEND_SSL || false;
|
const backendSSL= process.env.OPENRAG_BACKEND_SSL || false;
|
||||||
const path = params.path.join('/');
|
const path = params.path.join('/');
|
||||||
const searchParams = request.nextUrl.searchParams.toString();
|
const searchParams = request.nextUrl.searchParams.toString();
|
||||||
var backendUrl = `http://${backendHost}:8000/${path}${searchParams ? `?${searchParams}` : ''}`;
|
let backendUrl = `http://${backendHost}:8000/${path}${searchParams ? `?${searchParams}` : ''}`;
|
||||||
if (backendSSL) {
|
if (backendSSL) {
|
||||||
const backendUrl = `https://${backendHost}:8000/${path}${searchParams ? `?${searchParams}` : ''}`;
|
backendUrl = `https://${backendHost}:8000/${path}${searchParams ? `?${searchParams}` : ''}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue