#Converting ssr website to android app

17 messages · Page 1 of 1 (latest)

kindred lotus
#

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

crisp berryBOT
#

🔎 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)

outer willow
kindred lotus
#

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

outer willow
#

Well to get "native feel" you obv need native stuff

kindred lotus
#

I looked at this capacitor js which like converts website to native like feel ig

#

But dont know if it supports ssr

outer willow
#

you can use React Native, you can reuse quite a lot of code there

kindred lotus
#

So what will happen to the server side thing

outer willow
kindred lotus
#

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

outer willow
kindred lotus
#

Can i just send the request to url/api/xyz from another project?

outer willow
#

yes and iirc you don't have to setup CORS for an app to make requests

kindred lotus
#

After like enabling cors or other stuff to allow

kindred lotus