Skip to content

Commit

Permalink
Remove unnecessary Next.js workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jun 13, 2024
1 parent 0d68fee commit af1bd00
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sample/next-app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ const nextConfig = {
*/
swcMinify: false,
webpack: (config) => {
/**
* Critical: prevents " ⨯ ./node_modules/canvas/build/Release/canvas.node
* Module parse failed: Unexpected character '�' (1:0)" error
*/
config.resolve.alias.canvas = false;

// You may not need this, it's just to support moduleResolution: 'node16'
config.resolve.extensionAlias = {
'.js': ['.js', '.ts', '.tsx'],
Expand Down

0 comments on commit af1bd00

Please sign in to comment.