module.exports = { name: 'zone', async serverPrefetch() { this.zone = await this.fetchZone(this.routeId); if (!this.zone) throw new Error('Something went wrong'); }, methods: { fetchZone(routeId) { return this.findOneFromDef('zone', [routeId]); } }, props: { routeId: { required: true } } };