Update page.tsx

This commit is contained in:
CanbiZ 2025-03-14 13:46:07 +01:00
parent 5c459b1fff
commit 8513b8c032

View File

@ -36,7 +36,7 @@ const CategoryView = () => {
useEffect(() => {
const fetchCategories = async () => {
try {
const basePath = process.env.NODE_ENV === "production" ? "/ProxmoxVE" : "";
const basePath = process.env.NODE_ENV === "production" ? "/ProxmoxVED" : "";
const response = await fetch(`${basePath}/api/categories`);
if (!response.ok) {
throw new Error("Failed to fetch categories");