@@ -8,7 +8,8 @@ import { getRouteLang } from './getLanguage';
|
|||||||
|
|
||||||
// ─── Constants ─────────────────────────────────────────────────────────────────
|
// ─── 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
|
const DEFAULT_LOCALE = 'uz'; // fallback locale for redirect
|
||||||
|
|
||||||
// ─── Token helpers ─────────────────────────────────────────────────────────────
|
// ─── Token helpers ─────────────────────────────────────────────────────────────
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import { useTranslations } from 'next-intl';
|
|||||||
import { FileDown, Loader2 } from 'lucide-react';
|
import { FileDown, Loader2 } from 'lucide-react';
|
||||||
import React, { useState } from '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 }) {
|
export default function Sertifikat({ document_id }: { document_id: number }) {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
|
|||||||
Reference in New Issue
Block a user