-
Notifications
You must be signed in to change notification settings - Fork 223
Allow skipping local dev console #6786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/private/node/constants.d.ts@@ -6,6 +6,7 @@ export declare const environmentVariables: {
enableCliRedirect: string;
env: string;
firstPartyDev: string;
+ skipLocalDevConsole: string;
noAnalytics: string;
partnersToken: string;
runAsUser: string;
packages/cli-kit/dist/public/node/context/local.d.ts@@ -70,6 +70,13 @@ export declare function alwaysLogMetrics(env?: NodeJS.ProcessEnv): boolean;
* @returns True if SHOPIFY_CLI_1P is truthy.
*/
export declare function firstPartyDev(env?: NodeJS.ProcessEnv): boolean;
+/**
+ * Returns true if the local dev console should be skipped.
+ *
+ * @param env - The environment variables from the environment of the current process.
+ * @returns True if SHOPIFY_SKIP_LOCAL_DEV_CONSOLE is truthy.
+ */
+export declare function skipLocalDevConsole(env?: NodeJS.ProcessEnv): boolean;
/**
* Return gitpodURL if we are running in gitpod.
* Https://www.gitpod.io/docs/environment-variables#default-environment-variables.
|
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success3671 tests passing in 1430 suites. Report generated by 🧪jest coverage report action from 7403805 |
|
We detected some changes at Caution DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release. |
WHY are these changes introduced?
Fixes https://github.com/shop/issues-develop/issues/21457
WHAT is this pull request doing?
If you add
SHOPIFY_SKIP_LOCAL_DEV_CONSOLE=1andSHOPIFY_CLI_1P_DEV=1is not added, the local dev console will not be opened when following the preview link, and it will open Admin instead.How to test your changes?
SHOPIFY_SKIP_LOCAL_DEV_CONSOLE=1 pnpm shopify app devMeasuring impact
How do we know this change was effective? Please choose one:
Checklist