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

Is there a way to switch from development mode to production using our own bundler? #3548

Open
lriho opened this issue Feb 9, 2024 · 1 comment

Comments

@lriho
Copy link

lriho commented Feb 9, 2024

Describe the feature request

It has been reported that from v7.11.1 this issue came back. I can confirm it happens in v7.15.1. Even in production environment it says

The Okta Sign-In Widget is running in development mode.
When you are ready to publish your app, embed the minified version to turn on production mode.
See: https://developer.okta.com/code/javascript/okta_sign-in_widget#cdn

And while we appreciate the tip of using a minified version provided, we'd prefer to minify it using our own bundlers for various reasons @fredsvanelli specified.

So my question is, is there a way to trigger production mode programmatically? I've seen some DEBUG global variable in the source code, but was unable to provide it to the module. If not, can this be added perhaps in the new OktaSignIn() configOptions or even automatically detecting process.env.NODE_ENV === 'production'?

New or Affected Resource(s)

Okta signin widget

Provide a documentation link

https://developer.okta.com/code/javascript/okta_sign-in_widget#cdn

Additional Information?

No response

@shuowu-okta
Copy link
Contributor

Thanks for reporting the issue! Internal Ref: OKTA-697130

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

No branches or pull requests

2 participants