netlify-cli 15.4.2 → 15.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "15.4.2",
3
+ "version": "15.5.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "15.4.2",
9
+ "version": "15.5.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "15.4.2",
4
+ "version": "15.5.0",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "engines": {
@@ -359,6 +359,12 @@ const runDeploy = async ({
359
359
  const deployUrl = results.deploy.deploy_ssl_url || results.deploy.deploy_url
360
360
  const logsUrl = `${results.deploy.admin_url}/deploys/${results.deploy.id}`
361
361
 
362
+ let functionLogsUrl = `${results.deploy.admin_url}/functions`
363
+
364
+ if (!deployToProduction) {
365
+ functionLogsUrl += `?scope=deploy:${deployId}`
366
+ }
367
+
362
368
  return {
363
369
  siteId: results.deploy.site_id,
364
370
  siteName: results.deploy.name,
@@ -366,6 +372,7 @@ const runDeploy = async ({
366
372
  siteUrl,
367
373
  deployUrl,
368
374
  logsUrl,
375
+ functionLogsUrl,
369
376
  }
370
377
  }
371
378
 
@@ -441,15 +448,15 @@ const bundleEdgeFunctions = async (options) => {
441
448
  */
442
449
  const printResults = ({ deployToProduction, json, results, runBuildCommand }) => {
443
450
  const msgData = {
444
- Logs: `${results.logsUrl}`,
445
- 'Unique Deploy URL': results.deployUrl,
451
+ 'Build logs': results.logsUrl,
452
+ 'Function logs': results.functionLogsUrl,
446
453
  }
447
454
 
448
455
  if (deployToProduction) {
456
+ msgData['Unique deploy URL'] = results.deployUrl
449
457
  msgData['Website URL'] = results.siteUrl
450
458
  } else {
451
- delete msgData['Unique Deploy URL']
452
- msgData['Website Draft URL'] = results.deployUrl
459
+ msgData['Website draft URL'] = results.deployUrl
453
460
  }
454
461
 
455
462
  // Spacer