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 f274339 commit e547912
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: List output
run: |
ls -la ./
ls -la ./next
ls -la ./.next
ls -la ./out
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
10 changes: 9 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ const nextConfig = {
*/
output: "export",

distDir: 'out',
/**
* 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,
},
};

export default nextConfig;

0 comments on commit e547912

Please sign in to comment.