mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-05 12:44:27 +08:00
refactor(porject): 迁移代理配置至config
This commit is contained in:
parent
65db1d063e
commit
bb54075e91
@ -11,5 +11,4 @@ lib
|
||||
/docs
|
||||
.vscode
|
||||
.local
|
||||
!.env-config.ts
|
||||
components.d.ts
|
||||
|
@ -1,2 +1,3 @@
|
||||
export * from './sdk';
|
||||
export * from './service';
|
||||
export * from './env';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { getServiceEnvConfig } from '~/.env-config';
|
||||
import { getServiceEnvConfig } from '@/config';
|
||||
import { createRequest } from './request';
|
||||
|
||||
const { url, urlPattern } = getServiceEnvConfig(import.meta.env);
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { defineConfig, loadEnv, ConfigEnv } from 'vite';
|
||||
import { createViteProxy, setVitePlugins } from './build';
|
||||
import { resolve } from 'path';
|
||||
import { getServiceEnvConfig } from './.env-config';
|
||||
import { getServiceEnvConfig } from './src/config';
|
||||
|
||||
// 当前执行node命令时文件夹的地址(工作目录)
|
||||
const rootPath: string = resolve(process.cwd());
|
||||
|
Loading…
x
Reference in New Issue
Block a user