Skip to content

Commit

Permalink
Readd upload artifact and fix next.config.js to truly export the build
Browse files Browse the repository at this point in the history
  • Loading branch information
brianrahadi committed Nov 19, 2023
1 parent 28beeef commit ac91d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
NEXT_PUBLIC_SANITY_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_SANITY_PROJECT_ID }}
NEXT_PUBLIC_SANITY_READ_TOKEN: ${{ secrets.NEXT_PUBLIC_SANITY_READ_TOKEN }}
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./out

# Deployment job
deploy:
Expand Down
5 changes: 2 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ const nextConfig = {
reactStrictMode: true,
swcMinify: true,
output: "export",
};

module.exports = {
images: {
domains: ["cdn.sanity.io"],
},
Expand All @@ -20,3 +17,5 @@ module.exports = {
return config;
},
};

module.exports = nextConfig;

0 comments on commit ac91d4f

Please sign in to comment.