How to toggle preview between dev and prod?

Hi all,

I am trying to achieve a different setting from development vs production and was reading on
this article. Only this does not work at the moment

My stack
Nextjs
Loader: 1.0.183

As soon as I create two different instances, the application breaks with the following message:

Error: We detected that your Plasmic configuration has changed. Please restart your dev server. 

Is it something I am doing wrong or is it an issue on the latest version of the next loader?

I guess expectation should be that I can register both instances without issues.

You’re right; we will make this a warning instead of crashing the app

thanks @chungwu
Is it a version bump of the loader or will it be a platform change?

Reason for asking is, we want to know what to look out for to update our code accordingly to support the feature.

Also, should be mentioned. Thank you for the quick response! Highly appreciate it :thumbsup:

The latest @plasmicapp/loader-nextjs should only print a warning now