From 17248a68e721987dc6c3b35b416391b9a9208e3a Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Wed, 28 Apr 2021 12:17:46 -0500 Subject: [PATCH] Disable pulling payload from imported json --- pages/app/_slug/benchmarks.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pages/app/_slug/benchmarks.vue b/pages/app/_slug/benchmarks.vue index 0a8f007..52801ca 100644 --- a/pages/app/_slug/benchmarks.vue +++ b/pages/app/_slug/benchmarks.vue @@ -121,16 +121,17 @@ export default { // Manually get payload as fallback - if ( payload === undefined ) { - // Read back the JSON we just wrote to ensure it exists - const { default: savedList } = await import('~/static/nuxt-endpoints.json') + // Uncomment for dev + // if ( payload === undefined ) { + // // Read back the JSON we just wrote to ensure it exists + // const { default: savedList } = await import('~/static/nuxt-endpoints.json') - const endpoint = savedList.find( resource => { - return resource.route === route.path - } ) + // const endpoint = savedList.find( resource => { + // return resource.route === route.path + // } ) - payload = endpoint.payload - } + // payload = endpoint.payload + // } return { app: payload.app,