浏览代码

feat: 上下文改为/ss-dify

Hacked_1.7.0
fellow99 2 个月前
父节点
当前提交
fc08872087
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      web/utils/var-basePath.js
  2. 1
    1
      web/utils/var.ts

+ 1
- 1
web/utils/var-basePath.js 查看文件

// export basePath to next.config.js // export basePath to next.config.js
// same as the one exported from var.ts // same as the one exported from var.ts
module.exports = { module.exports = {
basePath: '',
basePath: '/ss-dify',
assetPrefix: '', assetPrefix: '',
} }

+ 1
- 1
web/utils/var.ts 查看文件



// Set the value of basePath // Set the value of basePath
// example: /dify // example: /dify
export const basePath = ''
export const basePath = '/ss-dify'


export function getMarketplaceUrl(path: string, params?: Record<string, string | undefined>) { export function getMarketplaceUrl(path: string, params?: Record<string, string | undefined>) {
const searchParams = new URLSearchParams({ source: encodeURIComponent(window.location.origin) }) const searchParams = new URLSearchParams({ source: encodeURIComponent(window.location.origin) })

正在加载...
取消
保存