mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Disable pulling payload from imported json
This commit is contained in:
parent
3d580ca0e9
commit
17248a68e7
1 changed files with 9 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue