mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
add front end code (#27)
This commit is contained in:
28
web/.umirc.ts
Normal file
28
web/.umirc.ts
Normal file
@ -0,0 +1,28 @@
|
||||
import { defineConfig } from "umi";
|
||||
import routes from './routes'
|
||||
|
||||
export default defineConfig({
|
||||
outputPath: 'dist',
|
||||
// alias: { '@': './src' },
|
||||
routes,
|
||||
npmClient: 'npm',
|
||||
base: '/',
|
||||
publicPath: '/client/dist/',
|
||||
icons: {
|
||||
|
||||
},
|
||||
hash: true,
|
||||
history: {
|
||||
type: 'hash',
|
||||
},
|
||||
plugins: ['@umijs/plugins/dist/dva'],
|
||||
dva: {},
|
||||
proxy: {
|
||||
'/v1': {
|
||||
'target': 'http://54.80.112.79:9380/',
|
||||
'changeOrigin': true,
|
||||
'pathRewrite': { '^/v1': '/v1' },
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user