Update next export

This commit is contained in:
DefectingCat
2022-08-31 14:27:59 +08:00
parent 2b9db34c1b
commit 5dbe5c6cac
4 changed files with 27 additions and 5 deletions

View File

@ -14,6 +14,7 @@
// images: { domains: ['avatars.githubusercontent.com'] },
// },
// ]);
/**
* @type {import('next').NextConfig}
*/
@ -24,8 +25,18 @@ const nextConfig = {
experimental: {
// runtime: 'nodejs',
// outputStandalone: true,
images: { allowFutureImage: 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'],
};