top | item 44503148

(no title)

jt_b | 7 months ago

Astro is nice, but its a different model than Nuxt, more suited to static sites.

discuss

order

kelthuzad|7 months ago

I'm just reading the docs and it seems more capable than that: https://docs.astro.build/en/concepts/islands/#server-islands

I have also just discovered a dedicated section for the migration from Nuxt to Astro:

>Key Similarities between Nuxt and Astro

Nuxt and Astro share some similarities that will help you migrate your project:

- Astro projects can also be SSG or SSR with page level prerendering.

- Astro uses file-based routing, and allows specially named pages to create dynamic routes.

- Astro is component-based, and your markup structure will be similar before and after your migration.

- Astro has an official integration for using Vue components.

- Astro has support for installing NPM packages, including Vue libraries. You may be able to keep some or all of your existing Vue components and dependencies.

https://docs.astro.build/en/guides/migrate-to-astro/from-nux...

etchalon|7 months ago

It's only "more capable" in the sense that yes, ultimately, it's JavaScript and you can do a lot with JavaScript.

But Astro's model is "generate markup once, serve statically".

Nuxt's model is "Server-Side JavaScript"

kcrwfrd_|7 months ago

Even if you use the Astro view transitions API to make a SPA, its client side router falls short of other frameworks that are more truly SPA oriented.