Base solution for your next web application
Open Closed

How do I set the system to production #8810


User avatar
0
jkeyser created

I see this message when I inspect.

"Angular is running in the development mode. Call enableProdMode() to enable the production mode."

How do I set the system to production?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi jkeyser

    Try

    ng build --env=prod
    

    The build system defaults to the dev environment which uses environment.ts, but if you do ng build --env=prod then environment.prod.ts will be used instead.