Loading apps/demo/next.config.js +3 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,9 @@ module.exports = withMDX({ experimental: { esmExternals: 'loose', }, publicRuntimeConfig: { basePath: process.env.BASE_PATH || '', }, webpack(config, options) { config.module.rules.push({ resourceQuery: /url/, Loading apps/demo/pages/file-manager.tsx +3 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ import { AdbSyncEntryResponse, AdbSyncMaxPacketSize, LinuxFileType } from '@yume import { action, autorun, makeAutoObservable, observable, runInAction } from "mobx"; import { observer } from "mobx-react-lite"; import { NextPage } from "next"; import getConfig from "next/config"; import Head from "next/head"; import Router, { useRouter } from "next/router"; import path from 'path'; Loading @@ -17,8 +18,9 @@ import { asyncEffect, chunkFile, formatSize, formatSpeed, Icons, pickFile, Route let StreamSaver: typeof import('streamsaver'); if (typeof window !== 'undefined') { const { publicRuntimeConfig } = getConfig(); StreamSaver = require('streamsaver'); StreamSaver.mitm = (process.env.BASE_PATH || '') + '/StreamSaver/mitm.html'; StreamSaver.mitm = publicRuntimeConfig.basePath + '/StreamSaver/mitm.html'; } interface ListItem extends AdbSyncEntryResponse { Loading Loading
apps/demo/next.config.js +3 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,9 @@ module.exports = withMDX({ experimental: { esmExternals: 'loose', }, publicRuntimeConfig: { basePath: process.env.BASE_PATH || '', }, webpack(config, options) { config.module.rules.push({ resourceQuery: /url/, Loading
apps/demo/pages/file-manager.tsx +3 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ import { AdbSyncEntryResponse, AdbSyncMaxPacketSize, LinuxFileType } from '@yume import { action, autorun, makeAutoObservable, observable, runInAction } from "mobx"; import { observer } from "mobx-react-lite"; import { NextPage } from "next"; import getConfig from "next/config"; import Head from "next/head"; import Router, { useRouter } from "next/router"; import path from 'path'; Loading @@ -17,8 +18,9 @@ import { asyncEffect, chunkFile, formatSize, formatSpeed, Icons, pickFile, Route let StreamSaver: typeof import('streamsaver'); if (typeof window !== 'undefined') { const { publicRuntimeConfig } = getConfig(); StreamSaver = require('streamsaver'); StreamSaver.mitm = (process.env.BASE_PATH || '') + '/StreamSaver/mitm.html'; StreamSaver.mitm = publicRuntimeConfig.basePath + '/StreamSaver/mitm.html'; } interface ListItem extends AdbSyncEntryResponse { Loading