From f96e155d7f577abd3658ca2d01935e94f78dca16 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Mon, 4 Jan 2021 15:51:08 -0600 Subject: [PATCH] Generate 5x video endpoints --- nuxt.config.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index d66fdb0..c042a3e 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -187,6 +187,17 @@ export default { }) }) + const extraEndpoints = [] + + for (let i = 0; i < 5; i++) { + videoList.forEach( video => { + extraEndpoints.push({ + route: getVideoEndpoint(video) + '-' + i, + payload: buildVideoPayload(video, allVideoAppsList, videoList) + }) + }) + } + // Build routes for app types that support benchmark endpoints const benchmarkRoutes = [ ...appRoutes, @@ -212,7 +223,9 @@ export default { // Non-app routes ...videoRoutes, ...categoryRoutes, - ...benchmarkRoutes + ...benchmarkRoutes, + + ...extraEndpoints ]) return Array.from(allEndpointsSet)