mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Update page.tsx
This commit is contained in:
		@@ -12,7 +12,8 @@ const CategoryView = () => {
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
    const fetchCategories = async () => {
 | 
			
		||||
      try {
 | 
			
		||||
        const response = await fetch("/json/metadata.json"); // JSON-Datei direkt laden
 | 
			
		||||
        const basePath = process.env.NODE_ENV === "production" ? "/ProxmoxVE" : "";
 | 
			
		||||
        const response = await fetch(`${basePath}/json/metadata.json`);
 | 
			
		||||
        if (!response.ok) {
 | 
			
		||||
          throw new Error("Failed to fetch categories");
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user