sst / open-next

Open source Next.js serverless adapter
https://open-next.js.org
MIT License
3.73k stars 112 forks source link

MicroApps and OpenNext - Can we work together? #324

Open huntharo opened 7 months ago

huntharo commented 7 months ago

Hello - I'm the developer of "MicroApps" which allows multiple Next.js apps (and other frameworks or static-only apps) to deploy to a single host on CloudFront and using an OriginRequest handler and DynamoDB for routing specific users to specific versions of an app. The system allows requests to remain isolated across versions where the browser will send all _next/data requests and static file requests to the exact corresponding server-side version (apparently Vercel now has something similar to this called "version preview" or some such). Multiple versions of an app can be accessed at a time, allowing for fast evaluation of when a bug was introduced in Production.

https://github.com/pwrdrvr/microapps-core/

I'd love to consolidate these projects and work together! Is anyone available to do a Google Meet or other type of meeting to see what we can do?

To summarize some of the unique features of MicroApps:

Let me know if you'd like to collaborate / consolidate, thanks - Harold

khuezy commented 7 months ago

Hi Harold that sounds great! It's Thanksgiving weekend in the US so there might not be any activity here til next week. CC: @fwang @conico974

Have you joined our discord? There's a V3 thread and your feature sets sound great to have in general.

conico974 commented 7 months ago

That's pretty cool. The easiest would be to create a thread on the open next channel on discord.

I've took a really quick look at your repo, and I think it should doable to integrate with open-next. If I understood correctly, you could just replace the current server lambda that uses LWA with the architecture of open next. https://open-next.js.org/advanced/architecture. All the tags and cache files are prefixed with next BUILD_ID so it should work fine in your case

huntharo commented 7 months ago

Cool, thanks for the replies already! Yup, I'm in the US. I'll get into the discord as suggested. Is anyone going to re:Invent next week? I will be there if anyone wants to meet up.

khuezy commented 7 months ago

I'm actually banned from all Amazon related facilities. Have fun there though and send us their secrets.