chore(templates): update template source URL to official domain

- Change base URL for template fetching from GitHub Pages to official templates domain
- Update both `fetchTemplatesList` and `fetchTemplateFiles` functions
- Ensure consistent template source URL across template-related functions
This commit is contained in:
Mauricio Siu
2025-03-10 01:06:31 -06:00
parent 87b007201a
commit 2fa691c5bd

View File

@@ -53,7 +53,7 @@ interface TemplateMetadata {
* Fetches the list of available templates from meta.json * Fetches the list of available templates from meta.json
*/ */
export async function fetchTemplatesList( export async function fetchTemplatesList(
baseUrl = "https://dokploy.github.io/templates", baseUrl = "https://templates.dokploy.com",
): Promise<TemplateMetadata[]> { ): Promise<TemplateMetadata[]> {
try { try {
const response = await fetch(`${baseUrl}/meta.json`); const response = await fetch(`${baseUrl}/meta.json`);
@@ -81,7 +81,7 @@ export async function fetchTemplatesList(
*/ */
export async function fetchTemplateFiles( export async function fetchTemplateFiles(
templateId: string, templateId: string,
baseUrl = "https://dokploy.github.io/templates", baseUrl = "https://templates.dokploy.com",
): Promise<{ config: CompleteTemplate; dockerCompose: string }> { ): Promise<{ config: CompleteTemplate; dockerCompose: string }> {
try { try {
// Fetch both files in parallel // Fetch both files in parallel