From 843d2ee67487c489095066dca1ad902deb8a4344 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 10 Jan 2022 16:14:49 +0100 Subject: build(webpack): allow PDF import --- next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.js b/next.config.js index 55c852a..25db587 100644 --- a/next.config.js +++ b/next.config.js @@ -22,6 +22,10 @@ const nextConfig = { }, webpack: (config) => { config.module.rules.push( + { + test: /\.pdf/, + type: 'asset', + }, { test: /\.po/, use: ['@lingui/loader'], -- cgit v1.2.3