diff --git a/packages/next/server/node-web-streams-helper.ts b/packages/next/server/node-web-streams-helper.ts index b0d52455c80d..c82ff473824f 100644 --- a/packages/next/server/node-web-streams-helper.ts +++ b/packages/next/server/node-web-streams-helper.ts @@ -173,7 +173,7 @@ function createHeadInsertionTransformStream( freezing = true } else { const content = decodeText(chunk) - const index = content.indexOf('') if (index !== -1) { const insertedHeadContent = content.slice(0, index) + insertion + content.slice(index) diff --git a/test/.gitignore b/test/.gitignore index cf4bab9ddde9..d6bf3bccf512 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -1 +1,2 @@ !node_modules +.vscode diff --git a/test/e2e/app-dir/app-alias/next.config.js b/test/e2e/app-dir/app-alias/next.config.js index e5b838697b38..cfa3ac3d7aa9 100644 --- a/test/e2e/app-dir/app-alias/next.config.js +++ b/test/e2e/app-dir/app-alias/next.config.js @@ -1,6 +1,5 @@ module.exports = { experimental: { appDir: true, - transpileModules: ['ui'], }, } diff --git a/test/e2e/app-dir/app-alias/src/app/layout.tsx b/test/e2e/app-dir/app-alias/src/app/layout.tsx index 079c59e3e258..cbdfcab5036e 100644 --- a/test/e2e/app-dir/app-alias/src/app/layout.tsx +++ b/test/e2e/app-dir/app-alias/src/app/layout.tsx @@ -1,8 +1,10 @@ export default function Root({ children }: { children: React.ReactNode }) { return ( - - {children} + +
top bar
+ {children} + ) }