2023-06-14 21:42:07 +03:00
|
|
|
//@ts-check
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
|
|
const { composePlugins, withNx } = require('@nx/next');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
|
|
|
|
**/
|
|
|
|
const nextConfig = {
|
|
|
|
nx: {
|
|
|
|
// Set this to true if you would like to use SVGR
|
|
|
|
// See: https://github.com/gregberge/svgr
|
|
|
|
svgr: false,
|
|
|
|
},
|
2023-08-17 18:49:05 +03:00
|
|
|
experimental: {
|
2023-09-14 18:54:13 +03:00
|
|
|
serverComponentsExternalPackages: [
|
|
|
|
'@fxa/shared/db/mysql/account',
|
|
|
|
'@fxa/shared/db/mysql/core',
|
|
|
|
'@fxa/payments/cart',
|
|
|
|
'@nestjs/core',
|
|
|
|
'@nestjs/common',
|
|
|
|
'class-transformer',
|
|
|
|
'class-validator',
|
|
|
|
'hot-shots',
|
|
|
|
'knex',
|
|
|
|
'kysely',
|
|
|
|
'mysql2',
|
|
|
|
'nest-typed-config',
|
|
|
|
'rxjs',
|
|
|
|
],
|
2023-07-28 20:01:17 +03:00
|
|
|
},
|
2023-08-17 18:49:05 +03:00
|
|
|
images: {
|
|
|
|
remotePatterns: [
|
|
|
|
{
|
|
|
|
protocol: 'https',
|
|
|
|
hostname: 'accounts-static.cdn.mozilla.net',
|
|
|
|
port: '',
|
|
|
|
pathname: '/product-icons/**',
|
2023-09-14 18:54:13 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-06-14 21:42:07 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
const plugins = [
|
|
|
|
// Add more Next.js plugins to this list if needed.
|
|
|
|
withNx,
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = composePlugins(...plugins)(nextConfig);
|