Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC handling unguarded ng run() #236

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

jamesdaniels
Copy link
Collaborator

@jamesdaniels jamesdaniels commented Aug 5, 2024

@9kubczas4 PTAL

@jamesdaniels jamesdaniels changed the title PoC of detected an unguarded ng run() PoC handling unguarded ng run() Aug 5, 2024

const LOCALE_FORMATS = [/^ALL_[a-z]+$/, /^[a-z]+_ALL$/, /^[a-z]+(_[a-z]+)?$/];
const NG_BROWSER_OUTPUT_PATH = process.env.__NG_BROWSER_OUTPUT_PATH__;

const expressHandle = new Promise<(typeof import("../express/index.js"))["handle"]>((resolve) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

With this proven, we can probably just fix this in the bootstrap.js file

Copy link
Contributor

Choose a reason for hiding this comment

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

I tried something similar but without success, but your proposal works, I created PR with update for bootstrap script: firebase/firebase-tools#7556.

Please take a look if you'll have time.

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