diff --git a/crates/napi/src/next_api/project.rs b/crates/napi/src/next_api/project.rs index 9738dcf949fa8..709632ea6c0e0 100644 --- a/crates/napi/src/next_api/project.rs +++ b/crates/napi/src/next_api/project.rs @@ -1145,7 +1145,7 @@ pub async fn project_trace_source( ( get_relative_path_to( ¤t_directory_file_url, - &format!("{}/{}", project_root_uri, source_file), + &format!("{}{}", project_root_uri, source_file), ) // TODO(sokra) remove this to include a ./ here to make it a relative path .trim_start_matches("./") diff --git a/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/monorepo-package-rsc/page.tsx b/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/monorepo-package-rsc/page.tsx index 1dcaf5b0c45ca..9cf7e5c218293 100644 --- a/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/monorepo-package-rsc/page.tsx +++ b/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/monorepo-package-rsc/page.tsx @@ -1,4 +1,4 @@ -import { text } from 'my-package/typescript.ts' +import { text } from 'my-package/typescript' export default function Page() { return
{text}
diff --git a/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/monorepo-package-ssr/page.tsx b/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/monorepo-package-ssr/page.tsx index b66994548f6f5..f0ec54bb6fd3d 100644 --- a/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/monorepo-package-ssr/page.tsx +++ b/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/monorepo-package-ssr/page.tsx @@ -1,6 +1,6 @@ 'use client' -import { text } from 'my-package/typescript.ts' +import { text } from 'my-package/typescript' export default function Page() { return{text}
diff --git a/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/source-maps-rsc/page.tsx b/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/source-maps-rsc/page.tsx index 3d1e6c8d1b95c..d2aa3c4fec7ca 100644 --- a/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/source-maps-rsc/page.tsx +++ b/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/source-maps-rsc/page.tsx @@ -1,5 +1,9 @@ export default async function Page({ searchParams }) { - innerFunction() + // We don't want the build to fail in production + if (process.env.NODE_ENV === 'development') { + innerFunction() + } + returnHello Source Maps
} function innerFunction() { diff --git a/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/source-maps-ssr/page.tsx b/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/source-maps-ssr/page.tsx index d36ad3f94b77b..c2ff962855524 100644 --- a/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/source-maps-ssr/page.tsx +++ b/test/e2e/app-dir/non-root-project-monorepo/apps/web/app/source-maps-ssr/page.tsx @@ -1,7 +1,11 @@ 'use client' export default function Page() { - innerFunction() + // We don't want the build to fail in production + if (process.env.NODE_ENV === 'development') { + innerFunction() + } + returnHello Source Maps
} function innerFunction() { diff --git a/test/integration/css-minify/test/index.test.js b/test/integration/css-minify/test/index.test.js index e337977a7c083..32df7ba184271 100644 --- a/test/integration/css-minify/test/index.test.js +++ b/test/integration/css-minify/test/index.test.js @@ -25,7 +25,7 @@ function runTests() { "/* [project]/test/integration/css-minify/styles/global.css [client] (css) */ .a{--var-1:0;--var-2:0;--var-1:-50%;--var-2:-50%}.b{--var-1:0;--var-2:0;--var-2:-50%} - /*# sourceMappingURL=styles_global_411632.css.map*/ + /*# sourceMappingURL=test_integration_css-minify_styles_global_411632.css.map*/ " `) } else {