Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
import type { NextConfigObject, SentryBuildOptions } from '../types';
|
|
/**
|
|
* Adds Sentry-related build-time variables to `nextConfig.env`.
|
|
*
|
|
* Note: this mutates `userNextConfig`.
|
|
*
|
|
* @param userNextConfig - The user's Next.js config object
|
|
* @param userSentryOptions - The Sentry build options passed to `withSentryConfig`
|
|
* @param releaseName - The resolved release name, if any
|
|
*/
|
|
export declare function setUpBuildTimeVariables(userNextConfig: NextConfigObject, userSentryOptions: SentryBuildOptions, releaseName: string | undefined): void;
|
|
/**
|
|
* Returns the current git SHA (HEAD), if available.
|
|
*
|
|
* This is a best-effort helper and returns `undefined` if git isn't available or the cwd isn't a git repo.
|
|
*/
|
|
export declare function getGitRevision(): string | undefined;
|
|
/**
|
|
* Reads the project's `instrumentation-client.(js|ts)` file contents, if present.
|
|
*
|
|
* @returns The file contents, or `undefined` if the file can't be found/read
|
|
*/
|
|
export declare function getInstrumentationClientFileContents(): string | void;
|
|
//# sourceMappingURL=buildTime.d.ts.map |