Merge pull request #11 from DavronNabijonv/dev

change baseUrl variable
This commit is contained in:
Davronbek Nabijonov
2026-04-02 22:58:32 +05:00
committed by GitHub
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();