Skip to content

Commit

Permalink
Add app/version useragent for tracking clients in runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Oct 8, 2024
1 parent 26e8172 commit 7f0817a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/app/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Deploy extends BuildCommand {
// cli input
const { flags } = await this.parse(Deploy)

process.env.__OW_USER_AGENT = 'aio-cli-plugin-app@' + require('../../../package.json').version
// flags
flags['web-assets'] = flags['web-assets'] && !flags.action
flags.publish = flags.publish && !flags.action
Expand Down
1 change: 1 addition & 0 deletions src/commands/app/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Run extends BaseCommand {
// cli input
const { flags } = await this.parse(Run)

process.env.__OW_USER_AGENT = 'aio-cli-plugin-app@' + require('../../../package.json').version
if (flags.local) {
const [firstCpu] = os.cpus()
// note: the earliest versions of M1 macs return 'Apple processor' under model.
Expand Down

0 comments on commit 7f0817a

Please sign in to comment.