Skip to content

improve/app-development#84

Merged
IAmKio merged 4 commits intostagingfrom
improve/app-development
Jun 5, 2024
Merged

improve/app-development#84
IAmKio merged 4 commits intostagingfrom
improve/app-development

Conversation

@IAmKio
Copy link
Collaborator

@IAmKio IAmKio commented Jun 5, 2024

  • Reworked app loading
  • Added ability to load a development app from the local .env file
  • Added stronger checks / error handling around loading apps
  • Updated README

@IAmKio IAmKio requested a review from RanaBug June 5, 2024 13:28
@IAmKio IAmKio self-assigned this Jun 5, 2024
@gitguardian
Copy link

gitguardian bot commented Jun 5, 2024

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
11546855 Triggered Generic High Entropy Secret 83873cd .env.example View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@IAmKio IAmKio changed the title improve/app development improve/app-development Jun 5, 2024
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 5, 2024

Deploying x with  Cloudflare Pages  Cloudflare Pages

Latest commit: f02e509
Status: ✅  Deploy successful!
Preview URL: https://0065617c.x-e62.pages.dev
Branch Preview URL: https://improve-app-development.x-e62.pages.dev

View logs

return apps;
}, {});
}
// eslint-disable-next-line no-console
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment can be removed

* Finally, did we have a REACT_APP_PX_DEVELOPMENT_ID environment variable set?
* Attempt to load this also.
*/
if (process.env.REACT_APP_PX_DEVELOPMENT_ID) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question here, what if this env variable is an empty string or there is a mismatch between the name of the app in the apps folder and the name in the env file? Should this error be handled as well, or it should not create an issue?

Copy link
Collaborator

@RanaBug RanaBug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go, just one minor comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants