mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: Configure the root directory alias #1739 ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import path from 'path';
|
||||
import { defineConfig } from 'umi';
|
||||
import { appName } from './src/conf.json';
|
||||
import routes from './src/routes';
|
||||
@ -5,7 +6,7 @@ import routes from './src/routes';
|
||||
export default defineConfig({
|
||||
title: appName,
|
||||
outputPath: 'dist',
|
||||
// alias: { '@': './src' },
|
||||
alias: { root: path.resolve('../') },
|
||||
npmClient: 'npm',
|
||||
base: '/',
|
||||
routes,
|
||||
|
||||
Reference in New Issue
Block a user