Skip to content

Commit

Permalink
update to next 12.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Rickaby committed Sep 9, 2022
1 parent 2d6b792 commit 81e66f5
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 139 deletions.
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('next').NextConfig} */
const isProd = process.env.NODE_ENV === "production";

module.exports = {
Expand All @@ -6,4 +7,12 @@ module.exports = {
* Replace `nextjs-github-pages` with your Github repo project name.
*/
assetPrefix: isProd ? "/nextjs-github-pages/" : "",
/**
* Disable server-based image optimization.
*
* @see https://nextjs.org/blog/next-12-3#disable-image-optimization-stable
*/
images: {
unoptimized: true,
},
};
Loading

0 comments on commit 81e66f5

Please sign in to comment.