This commit is contained in:
2025-08-20 17:11:32 +02:00
parent 9631ef37cc
commit 1f9334e2d8
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ const nextConfig = {
images: { images: {
unoptimized: true unoptimized: true
}, },
assetPrefix: process.env.NODE_ENV === 'production' ? '' : '',
webpack(config, options) { webpack(config, options) {
// Add file-loader for .mp4 files // Add file-loader for .mp4 files
config.module.rules.push({ config.module.rules.push({

View File

@@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "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", "start": "next start",
"lint": "next lint" "lint": "next lint"
}, },