hello everyone , im loving tauri so far ive built my app now the app using nextjs and it has api folder which makes calls on a certin clicks by the user now in dev mode everything works fine the call goes throw and i get a response now once i built it there is no api calls or anything its like a static app that is offline and dosent make any calls , how can i solve this?
#NextJs api calls
36 messages · Page 1 of 1 (latest)
SSR things won’t work with Tauri right off the bat
So you have to consider using NextJS but in a non-ssr way ig
is there a tutroial or a guide i couldnt find any
its not like ssr its an api call happens on click
To make those things work you would need to make a Sidecar of a node package which kinda kills the purpose of something like Tauri
This video tutorial will guide you through the process of setting up Tauri, a framework for building desktop apps with web technologies, with Next.js and Rust.
Join the discord:
https://discord.gg/XwExgW65u9
Tauri:
https://tauri.app/
Next.js:
https://nextjs.org/
Tailwind CSS:
https://tailwindcss.com/
DaisyUI:
https://daisyui.com/
Open-sour...
I’ve found this
And u got plenty of ressources on Google if you type « nextJs Tauri »
thank you man appreciate it , i wouldn't ask if i have found anything close to what im looking for there is no video or blog about making api calls with nextjs and tauri
What u mean by api calls ?
so there is no way to make an api calls a clear way atleast that goes smooth with the building
Http request ?
let me show you
Sure
this is an api file for nextjs
like a normal web app
if i built this with tauri it wouldnt work
but if i do ssg it wouldn't be live would it ? i have a chat gpt like model that the user asks a question and the bot response so it need to be live the tauri app dosent seem to connect to the internet
In build you don’t have shit
so i cant use node for the backend ?
You could buuut again that would kill tauri’s purpose
And adds some security issues ig
If you want to make requests you can either use the js http api that Tauri provides
Or use the rust backend to make those
tried but same think you have a guide for the http api for tauir?
If you’re familiar with axios
You can use the Tauri adapter
thanks alot man i will try this
❤️ tyy