Fix static base path (#549)

This commit is contained in:
Chris 2025-11-16 22:43:06 +02:00 committed by GitHub
parent b0041bafe1
commit 673a6a56ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 496 additions and 315 deletions

View file

@ -22,6 +22,7 @@ import {
ExclamationTriangleIcon,
PlayIcon,
} from '@heroicons/react/24/outline';
import { getApiPath } from '../../config/paths';
interface ProjectModalProps {
isOpen: boolean;
@ -295,7 +296,7 @@ const ProjectModal: React.FC<ProjectModalProps> = ({
const formData = new FormData();
formData.append('image', imageFile);
const response = await fetch('/api/upload/project-image', {
const response = await fetch(getApiPath('upload/project-image'), {
method: 'POST',
credentials: 'include',
body: formData,