diff --git a/public/images/8ktest.jpg b/public/images/8ktest.jpg new file mode 100644 index 0000000..1b5e046 --- /dev/null +++ b/public/images/8ktest.jpg @@ -0,0 +1 @@ +Invalid size diff --git a/src/pages/index.astro b/src/pages/index.astro index 3892ceb..e185bbf 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,24 +1,133 @@ --- import MainLayout from "@/layouts/MainLayout.astro"; +import { api } from "@/lib/api"; import RPKM from "@rpkm/sample.astro"; import FD from "@firstdate/sample.astro"; + +// Test backend health endpoint +let healthData = null; +let healthError = null; + +try { + const healthResponse = await api.get('/health'); + if (healthResponse.success) { + healthData = healthResponse.data; + } else { + healthError = healthResponse.error; + } +} catch (error) { + healthError = `Failed to fetch health: ${error.message}`; +} --- -
-

FreshmenFest 2025

- - -
- Logo + +
+ 8K Test Background + +
+
+ + +
+
+

FreshmenFest 2025

+

Testing 8K image load performance via Cloud Storage CDN

+ + +
+
+

Logo Test

+ Logo +
+ +
+

SVG Test

+ Test Image +
+ + +
+

Backend Health

+ {healthData ? ( +
+
+ + Healthy +
+
+
Status: {healthData.status}
+
Environment: {healthData.environment}
+
Time: {healthData.timestamp}
+
+
+ ) : ( +
+
+ + Error +
+
+ {healthError} +
+
+ )} +
+
+ + +
+

Load Test Info

+ +
+ +
+

Static Assets (CDN)

+
    +
  • • 8K Background: /images/8ktest.jpg
  • +
  • • Resolution: 7680×4320 pixels
  • +
  • • Served from: Cloud Storage CDN
  • +
  • • Cache headers: 1 day TTL
  • +
  • • Loading: eager, fetchpriority: high
  • +
+
+ + +
+

API Performance

+
    +
  • • Endpoint: /api/health
  • +
  • • Routing: Load balancer → Backend
  • +
  • • URL rewrite: /api/health → /health
  • +
  • • Response: {healthData ? 'Success' : 'Failed'}
  • +
  • • Status: {healthData ? + ✓ Connected : + ✗ Error + }
  • +
+
+
+ +
+

+ This page tests both static asset delivery (CDN) and API routing (load balancer) + to verify the complete infrastructure setup. +

+
+
-
- Test Image +
+ +
- - -