Files
DefectingCat.github.io/next.config.mjs
2022-08-31 14:27:59 +08:00

44 lines
1.1 KiB
JavaScript

// import composePlugins from 'next-compose-plugins';
// const composedConfig = composePlugins([
// /** @type {import('next').NextConfig} */
// {
// reactStrictMode: true,
// output: 'standalone',
// experimental: {
// // runtime: 'nodejs',
// // outputStandalone: true,
// images: { allowFutureImage: true },
// },
// pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
// images: { domains: ['avatars.githubusercontent.com'] },
// },
// ]);
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
/* config options here */
reactStrictMode: true,
output: 'standalone',
experimental: {
// runtime: 'nodejs',
// outputStandalone: true,
images:
process.env.NEXT_BUILD === 'export'
? { allowFutureImage: true, unoptimized: true }
: { allowFutureImage: true },
},
// images:
// process.env.NEXT_BUILD === 'export'
// ? {
// loader: 'imgix',
// path: 'https://rua.plus/',
// }
// : {},
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
};
export default nextConfig;