Skip to content

Commit

Permalink
Merge pull request #23 from Chocolate1999:fix/transition-bug
Browse files Browse the repository at this point in the history
fix: remove change preact
  • Loading branch information
Chocolate1999 authored Sep 12, 2022
2 parents 3ece615 + f3efeda commit 616255f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ module.exports = {
dirs: ['src'],
},

reactStrictMode: true,
// reactStrictMode: true,

// Uncoment to add domain whitelist
images: {
domains: ['res.cloudinary.com'],
},

webpack: (config, { dev, isServer }) => {
// Replace React with Preact only in client production build
if (!dev && !isServer) {
Object.assign(config.resolve.alias, {
react: 'preact/compat',
'react-dom/test-utils': 'preact/test-utils',
'react-dom': 'preact/compat',
});
}
// webpack: (config, { dev, isServer }) => {
// // Replace React with Preact only in client production build
// if (!dev && !isServer) {
// Object.assign(config.resolve.alias, {
// react: 'preact/compat',
// 'react-dom/test-utils': 'preact/test-utils',
// 'react-dom': 'preact/compat',
// });
// }

return config;
},
// return config;
// },
};

const intercept = require('intercept-stdout');
Expand Down
Binary file added public/images/new-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 616255f

@vercel
Copy link

@vercel vercel bot commented on 616255f Sep 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.