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
4 Replies
Brendonovich
Brendonovich13mo ago
if i were u i'd dynamically import that module in the onClick handlers i wouldn't have thought that the import uses something in window though
Finn
Finn13mo ago
yeha i think i tried that i also tried to wrap it in suspense but no luck
Finn
Finn13mo ago
maybe its not that an imdumb then?