kvnxiao / tauri-nextjs-template

A Tauri + Next.js (SSG) template, with TailwindCSS, opinionated linting, and GitHub Actions preconfigured
MIT License
306 stars 30 forks source link

Is this possible to make nextjs app dynamic using tauri sidecar? #211

Closed dragon-devs closed 5 months ago

dragon-devs commented 5 months ago

I want something to work with tauri + nextjs app routers, what I mean is this possible to make my nextjs14 application works just like it work in browsers with Tauri. Dynamic I know that tauri only support SSG but is it possible to make it work dynamically using tauri sidecar, I don't understand about this much. I'm just testing around if any of you guys know anything about it please let me know Thanks :)

kvnxiao commented 5 months ago

To make it non SSG, you would need to run the Node.js backend server that serves the frontend. Not sure why one would want to do that though, because it would be pretty inefficient to have to spin up a frontend server just to render the UI for a desktop application.

As to whether or not it is possible, it probably is possible, but that would be out of scope for this template repository so you'll need to look into that yourself.

dragon-devs commented 5 months ago

No bro, actually I mean to do that for the Api? I want to make it dynamic I just want to see the Api of nextjs or expressjs or any other api even with Django restapi! Is it possible to compile it with the tauri app.

What I really want is I want to make a complete offline application for a company that want offline services they don't want anything online because the internet has issue. They want some kinda inventory but a desktop application I search for it and I found that tauri is pretty good choice for it and I got experience with nextjs a lot. Is it possible if you have any suggestions I would love to hear it thanks man for your time ;)

dragon-devs commented 5 months ago

Plus checkout about the tauri sidecar if there any possibility with it?