Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function createApp({
beforeApp = () => {},
afterApp = () => {},
} = {}) {
const router = createRouter();
const { instantsearch, rootMixin } = createInstantSearch({
searchClient,
indexName: 'instant_search',
// other options, like
// stalledSearchDelay: 50
});
await beforeApp({
router,
instantsearch,
});
const app = new Vue({
mixins: [rootMixin],
router,
render: h => h(App),
});