From b35cc029bdedd44e08e23b620678837e51e341fb Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 19 Jan 2021 14:13:47 -0600 Subject: [PATCH] Duplicate tv endpoints for testing --- nuxt.config.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index a93facf..7b764c1 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -29,7 +29,27 @@ const listsOptions = [ ] const videoListOptions = { - buildMethod: buildVideoList, + buildMethod: async buildArgs => { + const videoList = await buildVideoList( buildArgs ) + + const extraVideos = [] + + const multiplier = 5 + + for (let i = 0; i < multiplier; i++) { + videoList.forEach( video => { + extraVideos.push({ + ...video, + slug: video.slug + '-' + i, + }) + }) + } + + return [ + ...videoList, + ...extraVideos + ] + }, path: '/static/video-list.json', }