fix(basepath): add basepath

This commit is contained in:
zhangheng
2026-02-28 15:43:50 +08:00
parent bcf46df7ec
commit 4aa29b80d1
14 changed files with 72 additions and 49 deletions

View File

@@ -1,10 +1,10 @@
importScripts("/wasm/ffmpeg-core.js")
importScripts(`${process.env.NEXT_PUBLIC_BASE_PATH}/wasm/ffmpeg-core.js`)
const originalCreateFFmpegCore = self.createFFmpegCore
self.createFFmpegCore = (moduleOverrides) =>
originalCreateFFmpegCore({
...moduleOverrides,
INITIAL_MEMORY: 268435456,
ALLOW_MEMORY_GROWTH: 1,
})
originalCreateFFmpegCore({
...moduleOverrides,
INITIAL_MEMORY: 268435456,
ALLOW_MEMORY_GROWTH: 1,
})