change baseUrl variable

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-02 22:56:28 +05:00
parent 60b29aa7de
commit b6dfde7337
2 changed files with 4 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ import { getRouteLang } from './getLanguage';
// ─── Constants ─────────────────────────────────────────────────────────────────
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
// const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
const baseUrl = 'https://api.anti-plagiat.uz/api/v1';
const DEFAULT_LOCALE = 'uz'; // fallback locale for redirect
// ─── Token helpers ─────────────────────────────────────────────────────────────

View File

@@ -3,7 +3,8 @@ import { useTranslations } from 'next-intl';
import { FileDown, Loader2 } from 'lucide-react';
import React, { useState } from 'react';
const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
// const baseUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
const baseUrl = 'https://api.anti-plagiat.uz/api/v1';
export default function Sertifikat({ document_id }: { document_id: number }) {
const t = useTranslations();