mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
25 lines
530 B
JavaScript
25 lines
530 B
JavaScript
// CommonJS with object property assignment
|
|
const config = {
|
|
experimental: {
|
|
turbo: {
|
|
resolveAlias: {
|
|
underscore: 'lodash',
|
|
}
|
|
},
|
|
typedRoutes: true,
|
|
},
|
|
};
|
|
|
|
// Add properties to the turbo object
|
|
config.experimental.turbo.resolveAlias.foo = 'bar';
|
|
config.experimental.turbo.minify = true;
|
|
config.experimental.turbo.memoryLimit = 4096;
|
|
config.experimental.turbopackMemoryLimit = 4096;
|
|
|
|
// Add regular property
|
|
config.images = {
|
|
formats: ['image/avif', 'image/webp'],
|
|
};
|
|
|
|
module.exports = config;
|