diff --git a/adapter/src/components/AppWrapper.js b/adapter/src/components/AppWrapper.js
index dd872561c..776622872 100644
--- a/adapter/src/components/AppWrapper.js
+++ b/adapter/src/components/AppWrapper.js
@@ -9,7 +9,7 @@ import { LoadingMask } from './LoadingMask.js'
import PWAUpdateManager from './PWAUpdateManager.js'
import { styles } from './styles/AppWrapper.style.js'
-export const AppWrapper = ({ appName, children, offlineInterface }) => {
+export const AppWrapper = ({ appName, children, offlineInterface, plugin }) => {
const { loading: localeLoading } = useCurrentUserLocale()
const { loading: latestUserLoading } = useVerifyLatestUser()
@@ -20,7 +20,7 @@ export const AppWrapper = ({ appName, children, offlineInterface }) => {
return (
-
+ {!plugin &&
}
window.location.reload()}>
{children}
@@ -36,4 +36,5 @@ AppWrapper.propTypes = {
appName: PropTypes.string.isRequired,
offlineInterface: PropTypes.object.isRequired,
children: PropTypes.node,
+ plugin: PropTypes.bool,
}
diff --git a/adapter/src/index.js b/adapter/src/index.js
index 9492ec9d9..c6f922c96 100644
--- a/adapter/src/index.js
+++ b/adapter/src/index.js
@@ -7,7 +7,14 @@ import { ServerVersionProvider } from './components/ServerVersionProvider.js'
const offlineInterface = new OfflineInterface()
-const AppAdapter = ({ url, apiVersion, appName, pwaEnabled, children }) => (
+const AppAdapter = ({
+ url,
+ apiVersion,
+ appName,
+ pwaEnabled,
+ plugin,
+ children,
+}) => (
(
pwaEnabled={pwaEnabled}
offlineInterface={offlineInterface}
>
-
+
{children}
@@ -26,6 +37,7 @@ AppAdapter.propTypes = {
appName: PropTypes.string.isRequired,
apiVersion: PropTypes.number,
children: PropTypes.element,
+ plugin: PropTypes.bool,
pwaEnabled: PropTypes.bool,
url: PropTypes.string,
}
diff --git a/cli/src/lib/plugin/webpack.config.js b/cli/src/lib/plugin/webpack.config.js
index 8a8307c38..9298cfe9f 100644
--- a/cli/src/lib/plugin/webpack.config.js
+++ b/cli/src/lib/plugin/webpack.config.js
@@ -31,7 +31,7 @@ module.exports = ({ env: webpackEnv, paths }) => {
process.env.PUBLIC_URL
)
- const shellEnv = getShellEnv({})
+ const shellEnv = getShellEnv({ plugin: 'true' })
// "style" loader turns CSS into JS modules that inject