() => Promise<void> | voidundefineddev.beforeStartUrl is used to execute a callback function before opening the startUrl, this config needs to be used together with dev.startUrl.
export default {
dev: {
startUrl: true,
beforeStartUrl: async () => {
await doSomeThing();
},
},
};