@vowel.to/client / index / DirectAdaptersOptions
Interface: DirectAdaptersOptions
Defined in: lib/vowel/adapters/helpers.ts:40
Options for creating direct adapters (SPAs)
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
navigate | (path) => void | Promise<void> | Navigation function for your router Example // Next.js navigate: (path) => router.push(path) // Vue Router navigate: (path) => router.push(path) // React Router navigate: (path) => navigate(path) | lib/vowel/adapters/helpers.ts:55 |
getCurrentPath? | () => string | Optional: Function to get current path Defaults to window.location.pathname | lib/vowel/adapters/helpers.ts:61 |
routes? | VowelRoute[] | Optional: Array of routes | lib/vowel/adapters/helpers.ts:66 |
enableAutomation? | boolean | Enable automation (default: true) Set to false to disable page interaction | lib/vowel/adapters/helpers.ts:72 |