@stokr/components-library
Version:
STOKR - Components Library
17 lines (15 loc) • 453 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getCookieDomain = exports.default = void 0;
const getCookieDomain = () => {
const cookieDomain = {};
// Cookie for deployed app
if (process.env.NODE_ENV === 'production') {
cookieDomain.domain = process.env.REACT_APP_COOKIE_DOMAIN;
}
return cookieDomain;
};
exports.getCookieDomain = getCookieDomain;
var _default = exports.default = getCookieDomain;