semperai / amica

Amica is an open source interface for interactive communication with 3D characters with voice synthesis and speech recognition.
https://heyamica.com
MIT License
684 stars 111 forks source link

next export is deprecated, blocker for upgrade to next.js 14 #67

Closed kasumi-1 closed 2 days ago

kasumi-1 commented 9 months ago

To perform tauri build we need to export the html to a folder.

However, the build deployed with vercel should not be output: 'export', type, so that dynamic urls work correctly.

next.js deprecated next export in favor of making export type configurable in json, however we do not want to set this, because of above.

https://nextjs.org/docs/pages/building-your-application/deploying/static-exports

I think the best option is to apply overrides for tauri build onto the next.config.js file, maybe there are a few base configs and depending on command run, different ones are copied to next.config.js.