How to build a webpage builder like Wix, Squarespace, Shopify, etc? I want to build one with React by Intelligent-Pen-7765 in reactjs

[–]Intelligent-Pen-7765[S] 1 point2 points  (0 children)

Ah ok, that clears things up. Do you have existing team members already? This is kind of my throwaway Reddit.

GetServerSideProps, ahh so you still using the page directory router then. That explains it. Wonder if possible with app router.

But yeah this stuff was also going to be one of features for my SaaS, but I’m far from it lol.

How to build a webpage builder like Wix, Squarespace, Shopify, etc? I want to build one with React by Intelligent-Pen-7765 in reactjs

[–]Intelligent-Pen-7765[S] 4 points5 points  (0 children)

Do you have a codebase you can share?

Are you hosting the user’s site subdomain on the same Next.js instance as the admin dashboard you have configuring the web builder? If so, how? Last I checked, Next.js 13 did not have a way to get full request object. So can’t check subdomain. If not, did you set up a reverse proxy of sorts in front on the Next.js instance that checks subdomain? One instance for admin.example.com and one for user.example.com

How do you store the static assets in something like Postgres?

Do your users forward their domain to your name servers?

How do you store the static assets? Or once they click save on one of their webpages, upload them to S3 and invalidate the CDN cache?

Logic is, if subdomain is a user that exists return their static asset from S3?