Skip to main content
InterviewHubPRO
Section Overview
Q24

Question 24 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

48%
Astro Islands & SSR (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

Managing Environment Variables in Astro (`import.meta.env`).

senior LevelSystem DesignAstro

In Simple Words:

  • Server-Only Variables: import.meta.env.DB_PASSWORD (Stripped from any client-side JavaScript!).
  • Client-Exposed Variables: Must be prefixed with PUBLIC_ (import.meta.env.PUBLIC_ANALYTICS_ID).