feat(web): 搭建应用骨架并完善开发环境配置
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* 环境变量配置(Vite 仅暴露 VITE_ 前缀变量)
|
||||
*/
|
||||
|
||||
interface EnvConfig {
|
||||
/** API 基础路径:开发环境由 vite 代理转发到 NestJS API */
|
||||
apiBaseUrl: string;
|
||||
appName: string;
|
||||
debug: boolean;
|
||||
}
|
||||
|
||||
export const envConfig: EnvConfig = {
|
||||
apiBaseUrl: import.meta.env.VITE_API_BASE_URL ?? '/api',
|
||||
appName: import.meta.env.VITE_APP_NAME ?? 'Atlas Seller Kit',
|
||||
debug: import.meta.env.VITE_DEBUG === 'true',
|
||||
};
|
||||
Reference in New Issue
Block a user