Production mode seems not to work


#1

Greetings from Italy!

I was just wondering about the use of the “Production Mode” vs “Dev Mode”, I try to set it from the browser or from the console with the P key but no matter what I do I always get:

DEV === true, development-level warning are ON, performance optimizations are OFF

when I refresh the App in Expo.

Running on Mac OS, expo-cli 2.6.13 and node 10.14.2

Thanks!


#2

Hey @umbertoghio,

Sorry to hear your having some issues with the expo-cli in Italy! Can you let me know if running the command expo start --no-dev successfully enables production mode for you?

Cheers,

Adam


#3

Hi Adam,
Thank you for the reply, problem solved, user error :joy::joy::joy:
I was refreshing the app in expo(android RR, ios cmd R), not reloading the project.
When reloading the project it indeed switches correctly!
Cheers!
Umberto


#4

Awesome! Glad to hear it, Umberto. Happy developing!


closed #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.