nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.53k stars 180 forks source link

Feature/Add environment variable injection feature in example-monorepos #496

Open obedNuertey1 opened 1 month ago

obedNuertey1 commented 1 month ago

Feature: Environment Variable Injection Across Expo and Next.js Packages in example-monorepos

Why:

Currently, managing environment variables separately for both Expo and Next.js packages can be cumbersome. This PR adds a feature that injects environment variables from a single .env file into both Expo and Next.js, streamlining the process and ensuring consistency across both environments.

What:

References:

This PR addresses a previously closed issue related to environment variables management but goes further to automate the process.

For more context, see:

Using environmental variables example

./.env.global

VAR_1=env_variable_1
VAR_2=env_variable_2

packages\app\features\home\screen.tsx image

Screenshots:

Mobile image

Web image

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
solito-app ❌ Failed (Inspect) Oct 8, 2024 1:51pm
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **solito** | ⬜️ Ignored ([Inspect](https://vercel.com/fernando-rojos-projects/solito/8sND1471QiP7Jv9c4u92u4fyWBpE)) | [Visit Preview](https://solito-git-fork-obednuertey1-fea-3e708e-fernando-rojos-projects.vercel.app) | | Oct 8, 2024 1:51pm |
vercel[bot] commented 1 month ago

@obedNuertey1 is attempting to deploy a commit to the BeatGig Team on Vercel.

A member of the Team first needs to authorize it.