fix vid
This commit is contained in:
@@ -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({
|
||||||
|
@@ -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"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user