remotion-dev/remotion

Load new env variables if `.env` has changed #1363

JonnyBurger posted onGitHub

šŸŽƒ This issue is part of our Hacktoberfest campaign! šŸ“š Read more about Hacktoberfest here šŸ•› This issue is currently assigned to @Slashgear and not for taking


Acceptance criteria

  • If the environment variables changed while npx remotion preview command is running, inject them into the browser and reload the server
  • Use a file watcher if .env only if the file exists.
  • Only inject variables that start with REMOTION_ (use getProcessEnv() to filter out acceptable)
  • Use the EventSource logic (search new-input-props in the codebase) to push a notification to the client that the environment variables have changed and apply a full reload
  • Figure out how to update the environment variables via Webpack. Maybe it is not possible, in that case you have to write some code that updates the variables on page load.

@remotion-dev has funded $112.00 to this issue.


posted by issuehunt-app[bot] over 2 years ago

šŸ‘‹šŸ» I could definitely take that @JonnyBurger

posted by Slashgear over 2 years ago

@jonnyburger has funded $25.00 to this issue.


posted by issuehunt-app[bot] over 2 years ago

@jonnyburger has funded $27.00 to this issue.


posted by issuehunt-app[bot] over 2 years ago

As discussed via DM, the issue is unassigned until the other one by Antoine is merged :) It will probably be gone by tomorrow!

posted by JonnyBurger over 2 years ago

@jonnyburger has rewarded $147.60 to @slashgear. See it on IssueHunt

  • :moneybag: Total deposit: $164.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $16.40
posted by issuehunt-app[bot] over 2 years ago

Fund this Issue

$164.00
Rewarded

Rewarded pull request

Recent activities

slashgear was rewarded by jonnyburger for remotion-dev/remotion# 1363
over 2 years ago
jonnyburger submitted an output to  remotion-dev/ remotion# 1363
over 2 years ago