Live data from Hacker News

Astro 1.0 – a web framework for building fast, content-focused websites

astro.build

31–40 of 256 posts

Re: Astro 1.0 – a web framework for building fast, content-focused websites

#31

I'm looking at https://docs.astro.build/en/concepts/why-astro/ and I still can't tell what's interesting and unique about this as compared to other options in this space. I acknowledge that this might be a PEBKAC situation, but I'd love to hear thoughts from people who used Next.js, Remix, or whatever and found Astro to be a revelation. It seems like Astro's creators believe "content-focused" is a differentiator, but…

For me it's the pre-rendering. I've used Next.js, Nuxt.js, Remix etc and they all server-render great. But for deploying SPAs to file-hosting (S3 + Cloud Front or Firebase Hosting) without a server runtime, you end up with empty HTML on request which is worse for SEO, social previews etc. There are solutions to pre-rendering for these stacks but they're more focused on deploying to Vercel or Netlify functions, or having a post-build script which opens the site in Puppeteer and saves the HTML into your build file! With Astro, all this is out of the box immediately. Try putting together an Astro site and look in your build directory; you'll see even for React components the HTML is already there

Re: Astro 1.0 – a web framework for building fast, content-focused websites

#32
post #25

Serious question: Why does Astro need a custom file format? The format looks identical to MDX

it -is- MDX https://www.brycewray.com/posts/2022/07/astro-move-to-mdx/

Then it's just for vanity, lol?

Re: Astro 1.0 – a web framework for building fast, content-focused websites

#33

Is there a static site generator out there that doesn't require a ridiculous build process every time I do an update? Inevitably, when a new "hot" SSG comes on the scene, I try it, and then go back to compare it to the old "hot" SSG from 2 years ago. Yet, I can never get the old test site I set up running again without massive annoyances. This has happened multiple times. As far as I'm concerned, there's zero reason…

Not sure if you've heard of Publii?[0]

It's a static blog generator type thing, bit of a different concept to the framework posted. I've tried it a few times casually and it seems ok for non-devs to get something simple up and running. Bit of dev work can update templates etc

The SEO defaults aren't perfect but they're easy enough to change in the software.

[0] https://getpublii.com

Re: Astro 1.0 – a web framework for building fast, content-focused websites

#34
post #25

Serious question: Why does Astro need a custom file format? The format looks identical to MDX

it -is- MDX https://www.brycewray.com/posts/2022/07/astro-move-to-mdx/

No, `.astro` is more than that. What I wrote about was their emphasizing MDX rather than generic Markdown.

Re: Astro 1.0 – a web framework for building fast, content-focused websites

#36
post #30
post #11

Earlier quoted context omitted.

" Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something. " https://news.ycombinator.com/newsguidelines.html

It's not a shallow dismissal, it's the scourge of our industry; I can't wait to retire so that I would never have to look at it again. Give it a rest with virtue signalling.

X being a scourge does not make every X-comment deep. On the contrary, comments about scourges are often shallow and lame.

Edit: I just took a look at your recent comment history, and ouch—that makes it painfully clear that you don't want to use HN as intended. I've therefore banned the account.

If you don't want to be banned, you're welcome to email hn@ycombinator.com and give us reason to believe that you'll follow the rules in the future.

Re: Astro 1.0 – a web framework for building fast, content-focused websites

#37

I'm looking at https://docs.astro.build/en/concepts/why-astro/ and I still can't tell what's interesting and unique about this as compared to other options in this space. I acknowledge that this might be a PEBKAC situation, but I'd love to hear thoughts from people who used Next.js, Remix, or whatever and found Astro to be a revelation. It seems like Astro's creators believe "content-focused" is a differentiator, but…

For me it's the pre-rendering. I've used Next.js, Nuxt.js, Remix etc and they all server-render great. But for deploying SPAs to file-hosting (S3 + Cloud Front or Firebase Hosting) without a server runtime, you end up with empty HTML on request which is worse for SEO, social previews etc. There are solutions to pre-rendering for these stacks but they're more focused on deploying to Vercel or Netlify functions, or hav…

I can just do a `nuxt generate` and put it on CF+S3 as well, right? how is that any different to what Astro does?

Re: Astro 1.0 – a web framework for building fast, content-focused websites

#38

Serious question: Why does Astro need a custom file format? The format looks identical to MDX

It uses it to know what JS is needed for the client. If it sees that means that no-JS is needed. But if it sees it knows to build + bundle the Counter component and attach its JS to the page.

Re: Astro 1.0 – a web framework for building fast, content-focused websites

#39

Can anyone explain if it's replacement of Next/remix to build complex sites or more like a SSG?

It started as SSG only but they added SSR so yeah they're now in the same space as Next, Remix, SvelteKit, etc.

In fact Solid's creator has said Astro is probably the best way to do SSR with it.

Re: Astro 1.0 – a web framework for building fast, content-focused websites

#40

Is there a static site generator out there that doesn't require a ridiculous build process every time I do an update? Inevitably, when a new "hot" SSG comes on the scene, I try it, and then go back to compare it to the old "hot" SSG from 2 years ago. Yet, I can never get the old test site I set up running again without massive annoyances. This has happened multiple times. As far as I'm concerned, there's zero reason…

Here's a good SEO component: https://www.npmjs.com/package/simple-astro-seo
Post reply on HN