@aws-amplify/core
Version:
Core category of aws-amplify
17 lines (14 loc) • 530 B
JavaScript
import { windowExists, globalExists } from './helpers.mjs';
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Tested with nuxt 2.15 / vue 2.7
function nuxtWebDetect() {
return (windowExists() &&
(window.__NUXT__ !== undefined ||
window.$nuxt !== undefined));
}
function nuxtSSRDetect() {
return (globalExists() && typeof global.__NUXT_PATHS__ !== 'undefined');
}
export { nuxtSSRDetect, nuxtWebDetect };
//# sourceMappingURL=Nuxt.mjs.map