for gitea
This commit is contained in:
@@ -2,7 +2,7 @@ import { Product } from "@/lib/products";
|
|||||||
|
|
||||||
export async function getAllProducts(): Promise<Product[]> {
|
export async function getAllProducts(): Promise<Product[]> {
|
||||||
const res = await fetch("https://admin.promtechno.uz/api/products/", {
|
const res = await fetch("https://admin.promtechno.uz/api/products/", {
|
||||||
cache: "force-cache", // build time uchun
|
cache: "force-cache", // build time uchun for gitea
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user