diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 94e4725..2a23f8c 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -42,7 +42,7 @@ jobs: elif [ -f "${{ github.workspace }}/package.json" ]; then echo "manager=npm" >> $GITHUB_OUTPUT echo "command=ci" >> $GITHUB_OUTPUT - echo "runner=npx" >> $GITHUB_OUTPUT + echo "runner=npx --no-install" >> $GITHUB_OUTPUT exit 0 else echo "Unable to determine package manager" @@ -80,6 +80,7 @@ jobs: - name: List output run: | ls -la ./ + 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 9906e19..b8cf9f2 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,15 +7,7 @@ const nextConfig = { */ output: "export", - /** - * 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, - }, + distDir: 'out', }; export default nextConfig;