/**
 * Environment variables helper
 * This file provides type-safe access to environment variables
 */

// Public environment variables (available in the browser)
export const env = {
  // API Configuration
  apiUrl: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:1337',
  siteUrl: process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000',
  strapiToken: process.env.NEXT_PUBLIC_STRAPI_TOKEN,
} as const;

// Server-side only environment variables (not exposed to the browser)
export const serverEnv = {
  // Add server-side only variables here
  // apiSecretKey: process.env.API_SECRET_KEY,
} as const;

// Type for public environment variables
export type Env = typeof env;

// Type for server-side environment variables
export type ServerEnv = typeof serverEnv;

