I have a website (next js ssr) i want to create mobile application is there any way i can you the same website to build it . I dont want to create whole new native client and server side. Is there anyway to convert it(something like capacitor will work or not. Also if i cant use the same codebase can I utilise the current website server side to acces its server from another client side so I dont have to make a new server side component
#Converting ssr website to android app
17 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
You can render the website inside a webview, but why do you need 2 servers
I want to publish it as an app on app stores, so i was thinking if i can get native like feel or not. If like i cant actually convert it using capacitor (maybe because its ssr not static) i can create an client side app and utilising the same integrated backend functions
Well to get "native feel" you obv need native stuff
I looked at this capacitor js which like converts website to native like feel ig
But dont know if it supports ssr
yeah me too
you can use React Native, you can reuse quite a lot of code there
So what will happen to the server side thing
wdym
Like rn i use nextjs + react and the backend is in the same code and i use server side propes and routing etc do i have to build seperate client(react native) and also build seperate backend for it
why do you need seperate backend for it, it can connect to same one
Can i just send the request to url/api/xyz from another project?
yes and iirc you don't have to setup CORS for an app to make requests
After like enabling cors or other stuff to allow
Ohk ig i have to build whole client side ui from scracth than :/