mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: demo-banner (#305)
This commit is contained in:
@@ -43,7 +43,7 @@ export async function proxy(request: NextRequest) {
|
||||
|
||||
if (url.pathname.startsWith("/api")) {
|
||||
if (url.pathname.startsWith("/api/v1")) {
|
||||
const apiEnabled = String(env.API_ENABLED) === "true";
|
||||
const apiEnabled = env.API_ENABLED;
|
||||
if (!apiEnabled) {
|
||||
return new NextResponse(
|
||||
JSON.stringify({
|
||||
@@ -53,7 +53,7 @@ export async function proxy(request: NextRequest) {
|
||||
{ status: 404, headers: { "Content-Type": "application/json" } },
|
||||
);
|
||||
}
|
||||
const openapiEnabled = String(env.OPENAPI_ENABLED) === "true";
|
||||
const openapiEnabled = env.OPENAPI_ENABLED;
|
||||
if (
|
||||
!openapiEnabled &&
|
||||
(url.pathname.startsWith("/api/v1/docs") ||
|
||||
|
||||
Reference in New Issue
Block a user