From 1f9334e2d810d13ba7c01f9336a44bc7e07a856b Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Wed, 20 Aug 2025 17:11:32 +0200 Subject: [PATCH] fix vid --- next.config.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index c323173..407929b 100644 --- a/next.config.js +++ b/next.config.js @@ -7,6 +7,7 @@ const nextConfig = { images: { unoptimized: true }, + assetPrefix: process.env.NODE_ENV === 'production' ? '' : '', webpack(config, options) { // Add file-loader for .mp4 files config.module.rules.push({ diff --git a/package.json b/package.json index 4fb3ab0..674ad9b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build && cp -r public/* out/", + "build": "next build && cp -r public/* out/ && cp public/videos/*.mp4 out/videos/", "start": "next start", "lint": "next lint" },