silverwolf-x/project / packages /next /src /build /write-build-id.ts
silverwolf-x's picture
download
raw
317 Bytes
import { promises } from 'fs'
import { join } from 'path'
import { BUILD_ID_FILE } from '../shared/lib/constants'
export async function writeBuildId(
distDir: string,
buildId: string
): Promise<void> {
const buildIdPath = join(distDir, BUILD_ID_FILE)
await promises.writeFile(buildIdPath, buildId, 'utf8')
}

Xet Storage Details

Size:
317 Bytes
·
Xet hash:
5cc8443ee1456eda624e9d7ad58acff0fa6a22c5f04de4b2a0c4314ae2be408e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.