Skip to content

Switch between urls in development mode and production mode

Notifications You must be signed in to change notification settings

codewell/use-development-value

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@codewell/use-development-value

Switch between urls in development mode and production mode

Installation

npm install @codewell/use-development-value

Basic usage

import useDevelopmentValue from '@codewell/use-development-value';

const originalValue = 'foo';
const developmentValue = 'dev-foo';

// Uses process.env.NODE_ENV to switch between the urls
const value = useDevelopmentValue(originalValue, developmentValue);

About

Switch between urls in development mode and production mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published