been working on this most of the day.. I think it’...
# general
s
been working on this most of the day.. I think it’s done, and it works great! Serverless Stack + Nuxt 3: https://github.com/ffxsam/nuxt-sst
@Ross Coundon @Ross Gerbasi
Vite SSR just wasn’t gonna work. too many build-time issues
thankfully, Nuxt 3 is a lot more pleasant than Nuxt 2 😄
a
In my company, there is a legacy project built in Nuxt, which has been a pain due lack of documentation, the guy who did it is not in the company anymore… Why would somebody use Nuxt instead of React solutions? or even Angular?
s
Because some people like Vue over React or Angular 🙂
a
Haha I see.
s
Nuxt is also the easiest way to get SSR with Vue
a
Yeah there is other legacy app built in Vue, which is being migrated to React at this moment, haha.
We have 7 React apps, and 1 vue, and 1 Nuxt… those 2 made by the same guy who left…
s
Vue 3 is amazing. I'm porting over a Vue 2 app to 3 currently
a
Funny that we are porting Vue 2 React.
Actually we are doing a micro-frontend to live with it.
s
I used to use React for a few years. I'm just not a fan of JSX
a
The Vue app it’s a huge control-panel with 50 or 60 sections.
So we are doing new stuff in React + microfront inside Vue.
s
Cool
a
And in the future ideally we can just kill the Vue container.
Maybe in 2 years, hahaha.
Also… really hard to find Vue developers, or developers who would like to learn Vue.
That’s my main concern with Vue.
Vue, React, Angular.. it’s all the same to me, because I’m not doing frontend development…… but if I can’t find people who can or want to work with it… it’s a problem.
s
Vue is so easy to learn. I would hire any senior dev who's familiar with Angular or React, and they could pick up Vue in a matter of days
a
The thing is if they WANT to do it, haha.
But I agree, any senior should be able to switch between frameworks… that’s what I did my entire life.
But well… not everybody has that mindset.
s
Yeah, I would always learn what was popular on the job market
Now I run my own business so I do whatever I want 😜
a
Hahaha nice!
f
@Sam Hulick I’m looking at the deploy script
Copy code
npx nuxi build nuxt
aws s3 sync --delete nuxt/.output/public $CDN_S3_URL
Is the S3 bucket created before hand and has static web hosting enabled on the bucket?
r
I know a fair few people who’ve worked with Vue and React, and not one prefers React. You’re right though in terms of the number of people who know React is higher and I think that’s because it’s higher, if you see what I mean
s
@Frank correct, this is a CDN bucket that’s precreated
@Ross Coundon especially Vue 3. now it has the elegance of composables & full TypeScript support (even in the template block) without the complexity of React or messiness (just my opinion, of course) of JSX.
r
I have been all in on vue for years now and started in with 3 in during the RFC and beta period. Been a framework engineer for the 10+ years now and still don't understand how Vue is not the clear choice. I have never used react seriously, I absolutely hate it. Vue + Vite is an ideal workflow, and vue in general is by far the cleanest reactive implementation. Composition API not only is great in vue but it is totally separate and can be used anywhere you want. Want a reactive nodeJS backend, just grab the npm package and
watch
away. As far as SSR goes I have a very simple Lit demo that I put together using Arc, Lit is by far the easiest example of SSR and web components are still a strong option, even if you wanna mix in vue for application creation. I am trying to port the demo to SST but it needs a bit of work as we don't have built in lambda + s3 proxying like arc has. Just havent had a few day to muck with it.