Skip to content

Commit

Permalink
Update next.config
Browse files Browse the repository at this point in the history
  • Loading branch information
vpodk committed Jan 27, 2024
1 parent c99ab24 commit f274339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
10 changes: 1 addition & 9 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit f274339

Please sign in to comment.