mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 09:26:41 +02:00
Projects included: - maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing) - manacore (Expo mobile + SvelteKit web + Astro landing) - manadeck (NestJS backend + Expo mobile + SvelteKit web) - memoro (Expo mobile + SvelteKit web + Astro landing) This commit preserves the current state before monorepo restructuring. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
591 B
Bash
Executable file
18 lines
591 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# This script runs before the EAS build process starts
|
|
# It copies the appropriate .env file based on the build profile
|
|
|
|
ENV_FILE_TO_USE="${EXPO_PUBLIC_USE_ENV_FILE:-.env}"
|
|
echo "Using environment file: $ENV_FILE_TO_USE"
|
|
|
|
if [ -f "$ENV_FILE_TO_USE" ]; then
|
|
echo "Copying $ENV_FILE_TO_USE to .env"
|
|
cp "$ENV_FILE_TO_USE" .env
|
|
else
|
|
echo "Warning: $ENV_FILE_TO_USE not found!"
|
|
fi
|
|
|
|
# Display the environment variables that will be used (without values for security)
|
|
echo "Environment variables that will be used (names only):"
|
|
grep -v '^#' .env | cut -d '=' -f1 | grep -v '^$'
|