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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user