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
Brendonovich2y 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
FinnOP2y ago
yeha i think i tried that i also tried to wrap it in suspense but no luck
Finn
FinnOP2y ago
maybe its not that an imdumb then?
Want results from more Discord servers?
Add your server