Skip to content

Commit 3f643cf

Browse files
committed
fix: update wrangler path to use EPICSHOP_PLAYGROUND_DEST_DIR environment variable
1 parent 38a0702 commit 3f643cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

epicshop/post-set-playground.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import path from 'path'
44
import fs from 'fs-extra'
55

6-
const playgroundDir =
7-
process.argv[2] || process.env.PLAYGROUND_DIR || process.cwd()
8-
const wranglerPath = path.join(playgroundDir, 'wrangler.jsonc')
6+
const wranglerPath = path.join(
7+
process.env.EPICSHOP_PLAYGROUND_DEST_DIR,
8+
'wrangler.jsonc',
9+
)
910

1011
if (await fs.pathExists(wranglerPath)) {
1112
try {

0 commit comments

Comments
 (0)