From e5479127257e5eff5fb1bdb6dcd8c7cead151665 Mon Sep 17 00:00:00 2001 From: Valentin Podkamennyi Date: Sat, 27 Jan 2024 14:30:46 -0800 Subject: [PATCH] update next config --- .github/workflows/nextjs.yml | 2 +- next.config.mjs | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 2a23f8c..3143bc6 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -80,7 +80,7 @@ jobs: - name: List output run: | ls -la ./ - ls -la ./next + ls -la ./.next ls -la ./out - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/next.config.mjs b/next.config.mjs index b8cf9f2..9906e19 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,7 +7,15 @@ const nextConfig = { */ output: "export", - distDir: 'out', + /** + * Disable server-based image optimization. Next.js does not support + * dynamic features with static exports. + * + * @see https://nextjs.org/docs/app/api-reference/components/image#unoptimized + */ + images: { + unoptimized: true, + }, }; export default nextConfig;