From e7e38b24c8299441cc463789c4a147147880e14e Mon Sep 17 00:00:00 2001 From: Luciano Giacchetta Date: Wed, 20 Aug 2025 19:16:30 -0300 Subject: [PATCH] #11 - Update images on careers --- astro.config.mjs | 3 +++ src/libs/careers.ts | 1 + src/pages/carreras/[slug].astro | 2 +- src/types/codyops-careers.ts | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index d7ddcba..0a60abc 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,6 +8,9 @@ export default defineConfig({ compressHTML: true, site: process.env.ASTRO_SITE, trailingSlash: 'always', + image: { + domains: ['assets.codyops.com','assets.codyops.com.br','assets.codyops.com.es'], + }, integrations: [ markdownIntegration({ remarkPlugins: [], diff --git a/src/libs/careers.ts b/src/libs/careers.ts index b688e5a..6e8c03f 100644 --- a/src/libs/careers.ts +++ b/src/libs/careers.ts @@ -10,6 +10,7 @@ export async function getCareers(): Promise { 'slug', 'name', 'description', + 'banner', { courses: [ { diff --git a/src/pages/carreras/[slug].astro b/src/pages/carreras/[slug].astro index 62e0548..539d1c0 100644 --- a/src/pages/carreras/[slug].astro +++ b/src/pages/carreras/[slug].astro @@ -39,7 +39,7 @@ const FeaturesComponent = (await import(`../../sections/${career.slug}/${career. diff --git a/src/types/codyops-careers.ts b/src/types/codyops-careers.ts index 4c3a09d..5e11891 100644 --- a/src/types/codyops-careers.ts +++ b/src/types/codyops-careers.ts @@ -12,6 +12,7 @@ export interface Careers { date_updated: string | null; name: string; description: string; + banner: string; courses: { codyops_courses_id: Courses; }[];