fix(templates): update template file and logo paths to use 'blueprints' directory

- Modify template logo URL to use 'blueprints' instead of 'templates'
- Update GitHub template file fetching to use 'blueprints' directory
- Ensure consistent path structure for template resources
This commit is contained in:
Mauricio Siu 2025-03-09 17:06:43 -06:00
parent 6def84d456
commit 7580a5dcd6
2 changed files with 3 additions and 3 deletions

View File

@ -305,7 +305,7 @@ export const AddTemplate = ({ projectId, baseUrl }: Props) => {
)}
>
<img
src={`${customBaseUrl || ""}/templates/${template.id}/${template.logo}`}
src={`${customBaseUrl || "https://dokploy.github.io/templates"}/blueprints/${template.id}/${template.logo}`}
className={cn(
"object-contain",
viewMode === "detailed" ? "size-24" : "size-16",

View File

@ -86,8 +86,8 @@ export async function fetchTemplateFiles(
try {
// Fetch both files in parallel
const [templateYmlResponse, dockerComposeResponse] = await Promise.all([
fetch(`${baseUrl}/templates/${templateId}/template.yml`),
fetch(`${baseUrl}/templates/${templateId}/docker-compose.yml`),
fetch(`${baseUrl}/blueprints/${templateId}/template.yml`),
fetch(`${baseUrl}/blueprints/${templateId}/docker-compose.yml`),
]);
if (!templateYmlResponse.ok || !dockerComposeResponse.ok) {