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
|
// Manually get payload as fallback
|
||||||
if ( payload === undefined ) {
|
// Uncomment for dev
|
||||||
// Read back the JSON we just wrote to ensure it exists
|
// if ( payload === undefined ) {
|
||||||
const { default: savedList } = await import('~/static/nuxt-endpoints.json')
|
// // 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 => {
|
// const endpoint = savedList.find( resource => {
|
||||||
return resource.route === route.path
|
// return resource.route === route.path
|
||||||
} )
|
// } )
|
||||||
|
|
||||||
payload = endpoint.payload
|
// payload = endpoint.payload
|
||||||
}
|
// }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
app: payload.app,
|
app: payload.app,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue