backgrounds: force france-transfert bg for now

will remove this later when we are assured all bgs match
france-transfert layout
This commit is contained in:
Emmanuel Pelletier
2024-05-24 14:33:57 +02:00
parent b69da40b47
commit 9de33cd347

View File

@@ -22,6 +22,9 @@ async function buildStaticBackgrounds() {
;[".avif", ".jpg"].forEach(async (ext) => { ;[".avif", ".jpg"].forEach(async (ext) => {
let src = backgrounds[weekOffset + i] let src = backgrounds[weekOffset + i]
// if we want, we can check the service id and force a specific src here // if we want, we can check the service id and force a specific src here
if (service.id === "france-transfert") {
src = "shutterstock_1867822423"
}
const srcPath = path.join(backgroundsDir, `${src}${ext}`) const srcPath = path.join(backgroundsDir, `${src}${ext}`)
const destPath = path.join(outputDir, `${service.id}${ext}`) const destPath = path.join(outputDir, `${service.id}${ext}`)
await copyFile(srcPath, destPath) await copyFile(srcPath, destPath)