2 ms·
I think it makes the tradeoffs that are ideal for content-oriented sites rather than web apps. > Next.js uses React to render your website. Astro is more flexi
by quickthrower2 4y ago
I think it makes the tradeoffs that are ideal for content-oriented sites rather than web apps.
> Next.js uses React to render your website. Astro is more flexible: you are free to build UI with any popular component library (React, Preact, Vue, Svelte, Solid and others) or Astro’s HTML-like component syntax which is similar to HTML + JSX.
> Both Next.js and Astro are frameworks for building websites. Next.js does best with highly dynamic websites (like dashboards and inboxes) while Astro does best with highly static websites (like content and eCommerce websites).
https://docs.astro.build/en/comparing-astro-vs-other-tools/#nextjs-vs-astro https://docs.astro.build/en/comparing-astro-vs-other-tools/#...
- antihero 4y agoAlso Astro sites can be hosted on CloudFront or any another static CDN. Next you’re kind of tied to Vercel no?
- crucialfelix 4y agoYou can upload the Next.js build to anything you like. netlify, S3 bucket, Apache or Nginx server running on solar powered bare metal. If you need backend api functions - https://github.com/serverless-nextjs/serverless-next.js/ https://github.com/serverless-nextjs/serverless-next.js/ AWS Lambda etc. Probably slightly more work I grant you.
- antihero 4y agoI tried this and the output HTML seemed pretty awful, but perhaps I was doing it wrong.