Skip to content

Commit

Permalink
Loading fonts the same in dev and prod enviroment. Fixes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKnarf committed Apr 24, 2021
1 parent 059c1ae commit 28d5c5e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@ module.exports = {
test: /\.(woff|woff2|eot|ttf)$/,
loader: 'file-loader',
options: {
outputPath: 'static/font/'
outputPath: 'static/font/',
publicPath: '/_next/static/font/'
}
});

config.output.publicPath = '';

return config;
},
};

0 comments on commit 28d5c5e

Please sign in to comment.