Code Explainers

Code explainers tagged #environment-config

javascript
import type { MetadataRoute } from 'next'
 
const BASE_URL = process.env.NEXT_PUBLIC_SITE_URL ?? 'https://example.com'
 

Environment-aware robots.txt in Next.js

seo environment-config web-crawlers
Intermediate 6 steps
java
package com.example.payments.config;
 
import com.stripe.StripeClient;
import org.springframework.beans.factory.annotation.Value;

Swapping payment gateways by profile in Spring

dependency-injection profiles configuration
Intermediate 6 steps