next 15.3.1-canary.3 → 15.3.1-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of next might be problematic. Click here for more details.
- package/dist/bin/next +1 -1
- package/dist/build/index.js +10 -2
- package/dist/build/index.js.map +1 -1
- package/dist/build/swc/index.js +1 -1
- package/dist/build/webpack-config.js +2 -2
- package/dist/client/app-bootstrap.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/compiled/next-server/server.runtime.prod.js +6 -6
- package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
- package/dist/esm/build/index.js +10 -2
- package/dist/esm/build/index.js.map +1 -1
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/webpack-config.js +2 -2
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/server/config-schema.js +1 -1
- package/dist/esm/server/config-schema.js.map +1 -1
- package/dist/esm/server/config-shared.js +1 -1
- package/dist/esm/server/config-shared.js.map +1 -1
- package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
- package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/esm/server/lib/app-info-log.js +1 -1
- package/dist/esm/server/lib/start-server.js +1 -1
- package/dist/esm/server/next-server.js +8 -7
- package/dist/esm/server/next-server.js.map +1 -1
- package/dist/esm/shared/lib/canary-only.js +1 -1
- package/dist/server/config-schema.js +1 -1
- package/dist/server/config-schema.js.map +1 -1
- package/dist/server/config-shared.d.ts +4 -4
- package/dist/server/config-shared.js +1 -1
- package/dist/server/config-shared.js.map +1 -1
- package/dist/server/dev/hot-reloader-turbopack.js +1 -1
- package/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/server/lib/app-info-log.js +1 -1
- package/dist/server/lib/start-server.js +1 -1
- package/dist/server/next-server.js +8 -7
- package/dist/server/next-server.js.map +1 -1
- package/dist/shared/lib/canary-only.js +1 -1
- package/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/telemetry/events/session-stopped.js +2 -2
- package/dist/telemetry/events/version.js +2 -2
- package/package.json +15 -15
package/dist/bin/next
CHANGED
@@ -79,7 +79,7 @@ const program = new NextRootCommand();
|
|
79
79
|
program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
|
80
80
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
81
81
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
82
|
-
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.3.1-canary.
|
82
|
+
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.3.1-canary.4"}`, '-v, --version', 'Outputs the Next.js version.');
|
83
83
|
program.command('build').description('Creates an optimized production build of your application. The output displays information about each route.').argument('[directory]', `A directory on which to build the application. ${(0, _picocolors.italic)('If no directory is provided, the current directory will be used.')}`).option('-d, --debug', 'Enables a more verbose build output.').option('--no-lint', 'Disables linting.').option('--no-mangling', 'Disables mangling.').option('--profile', 'Enables production profiling for React.').option('--experimental-app-only', 'Builds only App Router routes.').option('--turbo', 'Starts development mode using Turbopack.').option('--turbopack', 'Starts development mode using Turbopack.').addOption(new _commander.Option('--experimental-build-mode [mode]', 'Uses an experimental build mode.').choices([
|
84
84
|
'compile',
|
85
85
|
'generate',
|
package/dist/build/index.js
CHANGED
@@ -375,7 +375,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
375
375
|
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
376
376
|
buildMode: experimentalBuildMode,
|
377
377
|
isTurboBuild: String(isTurbopack),
|
378
|
-
version: "15.3.1-canary.
|
378
|
+
version: "15.3.1-canary.4"
|
379
379
|
});
|
380
380
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
381
381
|
_buildcontext.NextBuildContext.dir = dir;
|
@@ -756,7 +756,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
756
756
|
// Files outside of the distDir can be "type": "module"
|
757
757
|
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
758
758
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
759
|
-
await (0, _builddiagnostics.recordFrameworkVersion)("15.3.1-canary.
|
759
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("15.3.1-canary.4");
|
760
760
|
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
761
761
|
buildStage: 'start'
|
762
762
|
});
|
@@ -2034,6 +2034,14 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
2034
2034
|
const updatedRelativeDest = _path.default.join('pages', '404.html').replace(/\\/g, '/');
|
2035
2035
|
if ((0, _fs.existsSync)(orig)) {
|
2036
2036
|
await _fs.promises.copyFile(orig, _path.default.join(distDir, 'server', updatedRelativeDest));
|
2037
|
+
// since the app router not found is prioritized over pages router,
|
2038
|
+
// we have to ensure the app router entries are available for all locales
|
2039
|
+
if (i18n) {
|
2040
|
+
for (const locale of i18n.locales){
|
2041
|
+
const curPath = `/${locale}/404`;
|
2042
|
+
pagesManifest[curPath] = updatedRelativeDest;
|
2043
|
+
}
|
2044
|
+
}
|
2037
2045
|
pagesManifest['/404'] = updatedRelativeDest;
|
2038
2046
|
}
|
2039
2047
|
});
|