Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Rename variable and use env
Browse files Browse the repository at this point in the history
  • Loading branch information
mamikals committed Apr 10, 2024
1 parent ba921e2 commit 870775a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/komponenter/footer/chatbot/ChatbotWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export const ChatbotWrapper = () => {
const [scriptLoaded, setScriptLoaded] = useState<boolean>(false);
const currentFeatureToggles = useSelector(stateSelector).featureToggles;

const isDevelopment: boolean = process.env.NODE_ENV === 'development';
const isLocal: boolean = env === 'localhost';
const isProduction = env === 'prod';
const boostApiUrlBase = isProduction ? boostApiUrlBaseProduction : boostApiUrlBaseTest;

const cookieSettings = {
path: '/',
domain: isDevelopment ? 'localhost' : '.nav.no',
domain: isLocal ? 'localhost' : '.nav.no',
};

const openBoostWindow = () => {
Expand Down

0 comments on commit 870775a

Please sign in to comment.