From 62c87e42b25c8d4d28dff094cbd4ef8be0fbfb13 Mon Sep 17 00:00:00 2001 From: Samuel Hung Date: Thu, 20 Aug 2020 16:16:40 +0800 Subject: [PATCH] basePath should also append in urlPrefix --- examples/with-sentry/next.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/with-sentry/next.config.js b/examples/with-sentry/next.config.js index 272fef9c62884..7d5c90f380c5a 100644 --- a/examples/with-sentry/next.config.js +++ b/examples/with-sentry/next.config.js @@ -21,6 +21,7 @@ const COMMIT_SHA = VERCEL_BITBUCKET_COMMIT_SHA process.env.SENTRY_DSN = SENTRY_DSN +const basePath = '' module.exports = withSourceMaps({ serverRuntimeConfig: { @@ -63,12 +64,12 @@ module.exports = withSourceMaps({ include: '.next', ignore: ['node_modules'], stripPrefix: ['webpack://_N_E/'], - urlPrefix: '~/_next', + urlPrefix: `~${basePath}/_next`, release: COMMIT_SHA, }) ) } - return config }, + basePath, })