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
for reference https://github.com/FinnDore/k/pull/6
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
yeha i think i tried that
i also tried to wrap it in suspense but no luck
maybe its not that an imdumb then?