Skip to content

Commit

Permalink
chore: use /dist to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
iOdiO89 committed Jun 23, 2024
1 parent 50a9a52 commit be2aef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const nextConfig = {
styledComponents: true,
},
output: "export",
distDir: "dist",
};

module.exports = nextConfig;

0 comments on commit be2aef5

Please sign in to comment.