Skip to content

Commit

Permalink
Merge pull request #27 from SaqibSyed1014/staging
Browse files Browse the repository at this point in the history
minor fix
  • Loading branch information
SaqibSyed1014 authored Aug 17, 2024
2 parents eed8e02 + 75d9616 commit 816d857
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/core/constants/pricing.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ if (process.env.NODE_ENV === 'production') {

const { host } = useRequestURL();

const devEnvironments = ['development', 'localhost', 'netlify', 'devweb'];

if (devEnvironments.includes(process.env.NODE_ENV || host || '')) {
console.log('using dev price ids ')
if (process.env.NODE_ENV === 'development' ||
host?.includes('localhost') ||
host?.includes('netlify') ||
host?.includes('devweb')) {
console.log('using dev price Ids ')
pricingPlanIDsList = [
'price_1OMd9PLckED7yHH5UC3XcJjA',
'price_1PjUuaLckED7yHH5Nto134vZ',
Expand Down

0 comments on commit 816d857

Please sign in to comment.