Skip to content

Commit

Permalink
commas too
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Jan 10, 2025
1 parent 4780c50 commit fbf0926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fly.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ GDF.extend(class extends GDF {
const url = `https://${app}.fly.dev`
const config = original.replaceAll(/"https:\/\/[-\w.]+/g, '"' + url)
.replace(/(redirect_urls\s*=\s*\[).*?\]/s,
`$1\n "${url}/auth/callback"\n "${url}/auth/shopify/callback"\n "${url}/api/auth/callback"\n]`)
`$1\n "${url}/auth/callback",\n "${url}/auth/shopify/callback",\n "${url}/api/auth/callback"\n]`)
if (original !== config) {
console.log(`${chalk.bold.green('update'.padStart(11, ' '))} shopify.app.toml`)
fs.writeFileSync('shopify.app.toml', config)
Expand Down

0 comments on commit fbf0926

Please sign in to comment.