From a75c5841552efeceeb15b6b8487a725da1766181 Mon Sep 17 00:00:00 2001 From: HoshimuraYuto Date: Sun, 31 Mar 2024 14:27:56 +0000 Subject: [PATCH] add support video format --- next.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/next.config.js b/next.config.js index e0faf47..c761265 100644 --- a/next.config.js +++ b/next.config.js @@ -23,6 +23,16 @@ const nextConfig = { }, }, }); + config.module.rules.push({ + test: /\.(mp4|webm|mov)$/, + use: { + loader: "file-loader", + options: { + publicPath: "/_next/static/videos", + outputPath: "static/videos", + }, + }, + }); config.module.rules.push({ test: /\.(md|markdown)$/, type: "asset/source",