Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Sep 12, 2023
1 parent dfe0513 commit e27c44c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nextjs/src/config/loaders/wrappingLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SENTRY_WRAPPER_MODULE_NAME = 'sentry-wrapper-module';
const WRAPPING_TARGET_MODULE_NAME = '__SENTRY_WRAPPING_TARGET_FILE__.cjs';

// This module is non-public API and may break
const nextjsRequestAsyncStorageModulePath = getAsyncLocalStorageModule();
const nextjsRequestAsyncStorageModulePath = getRequestAsyncLocalStorageModule();

const apiWrapperTemplatePath = path.resolve(__dirname, '..', 'templates', 'apiWrapperTemplate.js');
const apiWrapperTemplateCode = fs.readFileSync(apiWrapperTemplatePath, { encoding: 'utf8' });
Expand Down Expand Up @@ -53,7 +53,7 @@ type LoaderOptions = {
vercelCronsConfig?: VercelCronsConfig;
};

function getAsyncLocalStorageModule(): string | undefined {
function getRequestAsyncLocalStorageModule(): string | undefined {
try {
// Original location of that module
// https://github.com/vercel/next.js/blob/46151dd68b417e7850146d00354f89930d10b43b/packages/next/src/client/components/request-async-storage.ts
Expand Down

0 comments on commit e27c44c

Please sign in to comment.