First Init
Deploy to Production / Build & Verify (push) Failing after 5m56s
Ping Search Engines / Notify Search Engines (push) Successful in 2s
Deploy to Production / Pre-Deploy Tests (push) Has been skipped
Deploy to Production / Deploy to Railway (push) Has been skipped
Deploy to Production / Deploy to Render (push) Has been skipped
Deploy to Production / Deploy to VPS (PM2) (push) Has been skipped
Deploy to Production / Deploy to Fly.io (push) Has been skipped
Deploy to Production / Post-Deploy Verification (push) Has been skipped
Deploy to Production / Notify on Failure (push) Successful in 2s
E2E Test Suite / Critical User Journeys (push) Has been skipped
E2E Test Suite / API Integration Tests (push) Has been skipped
E2E Test Suite / Smoke Tests (P0) (push) Failing after 11m26s
E2E Test Suite / Form Interaction Tests (push) Failing after 11m42s
E2E Test Suite / Destructive & Chaos Tests (push) Failing after 12m2s
E2E Test Suite / Cross-Browser Regression (chromium) (push) Failing after 16m14s
E2E Test Suite / Cross-Browser Regression (webkit) (push) Failing after 17m45s
E2E Test Suite / Cross-Browser Regression (firefox) (push) Failing after 25m23s
E2E Test Suite / Security Header Tests (push) Failing after 7m55s
E2E Test Suite / Test Report Summary (push) Failing after 20s
E2E Test Suite / Mobile Device Tests (push) Failing after 2h49m9s
Uptime Monitor / Health & Response Time (push) Failing after 2s
Uptime Monitor / SSL Certificate (push) Successful in 2s
Uptime Monitor / Send Alerts (push) Failing after 3s
Uptime Monitor / Record Uptime Success (push) Has been skipped
Deploy to Production / Build & Verify (push) Failing after 5m56s
Ping Search Engines / Notify Search Engines (push) Successful in 2s
Deploy to Production / Pre-Deploy Tests (push) Has been skipped
Deploy to Production / Deploy to Railway (push) Has been skipped
Deploy to Production / Deploy to Render (push) Has been skipped
Deploy to Production / Deploy to VPS (PM2) (push) Has been skipped
Deploy to Production / Deploy to Fly.io (push) Has been skipped
Deploy to Production / Post-Deploy Verification (push) Has been skipped
Deploy to Production / Notify on Failure (push) Successful in 2s
E2E Test Suite / Critical User Journeys (push) Has been skipped
E2E Test Suite / API Integration Tests (push) Has been skipped
E2E Test Suite / Smoke Tests (P0) (push) Failing after 11m26s
E2E Test Suite / Form Interaction Tests (push) Failing after 11m42s
E2E Test Suite / Destructive & Chaos Tests (push) Failing after 12m2s
E2E Test Suite / Cross-Browser Regression (chromium) (push) Failing after 16m14s
E2E Test Suite / Cross-Browser Regression (webkit) (push) Failing after 17m45s
E2E Test Suite / Cross-Browser Regression (firefox) (push) Failing after 25m23s
E2E Test Suite / Security Header Tests (push) Failing after 7m55s
E2E Test Suite / Test Report Summary (push) Failing after 20s
E2E Test Suite / Mobile Device Tests (push) Failing after 2h49m9s
Uptime Monitor / Health & Response Time (push) Failing after 2s
Uptime Monitor / SSL Certificate (push) Successful in 2s
Uptime Monitor / Send Alerts (push) Failing after 3s
Uptime Monitor / Record Uptime Success (push) Has been skipped
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
---
|
||||
title: "Getting Started with Astro: The Modern Static Site Generator"
|
||||
description: "Learn how Astro combines the best of static site generation with modern component frameworks for blazing-fast websites."
|
||||
pubDate: 2024-01-15
|
||||
heroImage: "/images/blog/astro-intro.jpg"
|
||||
category: "Web Development"
|
||||
tags: ["Astro", "Static Sites", "JavaScript", "Performance"]
|
||||
author:
|
||||
name: "Sarah Chen"
|
||||
avatar: "/images/team/sarah.jpg"
|
||||
draft: false
|
||||
---
|
||||
|
||||
Astro has revolutionized how we build content-focused websites. Unlike traditional frameworks, Astro ships **zero JavaScript by default**, resulting in incredibly fast page loads.
|
||||
|
||||
## Why Choose Astro?
|
||||
|
||||
Astro stands out for several compelling reasons:
|
||||
|
||||
1. **Island Architecture** - Only hydrate interactive components
|
||||
2. **Framework Agnostic** - Use React, Vue, Svelte, or vanilla JS
|
||||
3. **Content Collections** - Type-safe Markdown and MDX handling
|
||||
4. **Edge-Ready** - Deploy anywhere with adapters
|
||||
|
||||
## Code Example
|
||||
|
||||
Here's a simple Astro component:
|
||||
|
||||
```astro
|
||||
---
|
||||
// Component script runs at build time
|
||||
const greeting = "Hello, Astro!";
|
||||
---
|
||||
|
||||
<h1>{greeting}</h1>
|
||||
|
||||
<style>
|
||||
h1 {
|
||||
color: #0891b2;
|
||||
font-size: 2rem;
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
## Performance Benefits
|
||||
|
||||
Astro's approach to partial hydration means your users get:
|
||||
|
||||
- **Faster Time to Interactive (TTI)**
|
||||
- **Lower JavaScript bundle sizes**
|
||||
- **Better Core Web Vitals scores**
|
||||
|
||||
```javascript
|
||||
// Traditional SPA: Everything loads
|
||||
import HeavyComponent from './HeavyComponent';
|
||||
import AnotherHeavyComponent from './AnotherHeavyComponent';
|
||||
|
||||
// Astro: Only what's needed
|
||||
// Components are static HTML unless marked client:*
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
Install Astro with a single command:
|
||||
|
||||
```bash
|
||||
npm create astro@latest
|
||||
```
|
||||
|
||||
Choose a template, and you're ready to build your next project with the performance benefits of static HTML and the developer experience of modern frameworks.
|
||||
Reference in New Issue
Block a user