From 23b9f876ea37ef147aacbb55beaf41335abbee03 Mon Sep 17 00:00:00 2001 From: Rodrigo Gomez Palacio Date: Tue, 6 Feb 2024 14:27:00 -0600 Subject: [PATCH] Update build script to use localhost as API origin in dev-dev envs Motivation: we default to onesignal.com if no API origin is passed in. Thus, we should specify that the api origin should be localhost for dev-dev --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index da0248251..64bff7df6 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "build:prod": "ENV=production yarn transpile:sources && ENV=production yarn bundle-sw && ENV=production yarn bundle-sdk && ENV=production yarn bundle-page-sdk-es6 && bundlesize && ENV=production build/scripts/publish.sh", "test": "NODE_OPTIONS=\"--trace-warnings --unhandled-rejections=warn\" yarn run jest --detectOpenHandles --forceExit --runInBand", "publish": "yarn clean && yarn build:prod && yarn", - "build:dev-dev": "./build/scripts/build.sh -f development -t development", + "build:dev-dev": "./build/scripts/build.sh -f development -t development -a localhost", "build:dev-prod": "./build/scripts/build.sh -f development -t production", "build:dev-stag": "./build/scripts/build.sh -f development -t staging", "lint": "eslint src --ext .js,.jsx,.ts,.tsx; yarn prettylint 'src/**/*' 'test/**/*' '__test__/**/*' --no-editorconfig",