Skip to content

Commit

Permalink
Give correct SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSandwich committed Jul 24, 2024
1 parent 6bb808f commit 5700bab
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions scripts/upload-source-maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

// import { unlinkSync } from 'fs'
import { execSync } from 'child_process'

const main = () => {
if (process.env.VERCEL_ENV === 'development') {
return
}

const LATEST_SHA = execSync('git rev-parse HEAD').toString().trim()
const LATEST_SHA = process.env.VERCEL_GIT_COMMIT_SHA
const PATH_PREFIX = 'https://developer.hashicorp.com/_next/static/'
const SERVICE = 'developer.hashicorp.com'

Expand All @@ -30,11 +28,6 @@ const main = () => {
})

console.log('Source maps uploaded successfully')

// Delete the source map file
// unlinkSync('.next/static/your-source-map-file.js.map')

console.log('Source map deleted successfully')
} catch (error) {
console.error(error)

Expand Down

0 comments on commit 5700bab

Please sign in to comment.