diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index dddc750..95a27ac 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -75,12 +75,10 @@ jobs: run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build - - name: Export - run: npm run export - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: ./out + path: ./dist # Deployment job deploy: diff --git a/next.config.js b/next.config.js index 13afb15..7df6e95 100644 --- a/next.config.js +++ b/next.config.js @@ -15,6 +15,7 @@ const nextConfig = { styledComponents: true, }, output: "export", + distDir: "dist", }; module.exports = nextConfig;