Skip to content

Commit 23ba15d

Browse files
authored
Merge pull request #6510 from Shopify/10-15-add_support_for_env_build_repository_in_the_create-app_package
Add support for env_build_repository in the create-app package
2 parents 77b6f54 + 7b5d169 commit 23ba15d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/create-app/bin/bundle.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ esBuild({
2828
outdir: './dist',
2929
platform: 'node',
3030
format: 'esm',
31+
define: {
32+
// Injected during build to detect fork vs original repo
33+
'process.env.SHOPIFY_CLI_BUILD_REPO': JSON.stringify(process.env.SHOPIFY_CLI_BUILD_REPO || 'unknown'),
34+
},
3135
sourcemap: true,
3236
inject: ['../../bin/bundling/cjs-shims.js'],
3337
external,

0 commit comments

Comments
 (0)