How do i disable pre-rendering when using the app dir?

Building a tauri app using the app dir (for better or for worse). The app works fine but as soon as i run a prod build it fails due to next pre-rendering the page and thus hitting some tauri code that relies on the window
Was this page helpful?