-
SummarySo after updating to Next 15.4.6 (latest stable) I have read about turbopack being almost ready (on Next blog) and went in to try it out. When I add the CLI flag (I build via Docker, so in my Dockerfile I used line: What confuses me is this build output:
I have no My const {
version: playerVersion,
} = require("./projects/player/package.json");
const webpack = require("webpack");
/** @type {import("next").NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: ["react-daisyui"],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**/*",
},
],
},
turbopack: {
root: __dirname,
},
output: "standalone",
eslint: {
ignoreDuringBuilds: true,
},
async headers() {
return [
{
source: "/static/test/:path*",
headers: [
{
key: "Access-Control-Allow-Origin",
value: "*",
},
],
},
];
},
webpack(config) {
config.plugins.push(
new webpack.DefinePlugin({
__PLAYER_VERSION__: JSON.stringify(playerVersion),
__PLAYER_TAILWIND_PREFIX__: '""',
}),
);
return config;
},
};
const createNextIntlPlugin = require("next-intl/plugin");
const withNextIntl = createNextIntlPlugin();
const { withSentryConfig } = require("@sentry/nextjs");
const finalConfig = withSentryConfig(nextConfig, {
org: "<REDACTED>",
project: "<REDACTED>",
authToken: process.env.SENTRY_AUTH_TOKEN,
silent: !process.env.CI,
disableLogger: true,
sourcemaps: {
disable: true,
},
});
module.exports = withNextIntl(finalConfig); 🤔 Should I ignore the warning about config property When I don't use the CLI flag, it seems to me that the old Webpack build is being used. Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
In Next.js ≤15.4.x, the // next.config.js
module.exports = {
turbopack: {
root: __dirname, // optional
},
}; And about second warning
Turbopack still isn’t fully stable. To avoid this warning while keeping turbopack testing,
But as Next.js team doesn't recommend this one, removing turbopack in building will be better I guess. Try it out. |
Beta Was this translation helpful? Give feedback.
-
What's your |
Beta Was this translation helpful? Give feedback.
Even v4 does that:
And you'll see this when building - so
config.experimental.turbo
is added by next-intl.