Plugin packaging and docs

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-09 22:45:30 +00:00
parent 80f1709a2e
commit 4343f62140
63 changed files with 1369 additions and 223 deletions

View File

@@ -12,7 +12,7 @@ import Checkbox from '../form/input/Checkbox';
import Switch from '../form/switch/Switch';
import { useToast } from '../ui/toast/ToastContainer';
import { integrationApi, SiteIntegration } from '../../services/integration.api';
import { fetchAPI } from '../../services/api';
import { fetchAPI, API_BASE_URL } from '../../services/api';
import {
CheckCircleIcon,
AlertIcon,
@@ -171,8 +171,8 @@ export default function WordPressIntegrationForm({
};
const handleDownloadPlugin = () => {
// Use the backend API endpoint for plugin download
const pluginUrl = `/api/plugins/igny8-wp-bridge/download/`;
// Use the backend API endpoint for plugin download (must use full API URL, not relative)
const pluginUrl = `${API_BASE_URL}/plugins/igny8-wp-bridge/download/`;
window.open(pluginUrl, '_blank');
toast.success('Plugin download started');
};