🌳
pt0/deployF/buildEnvConfF.mts
4import { fileURLToPath } from 'url'
6export const buildEnvConf = ({envConf, action, cluster_name, name, importMetaUrl}: {
7 envConf: Record<string, string>, action: string, cluster_name: string, name: string, importMetaUrl?: string
8}) => {
9 const skipClusterInfo = ['setenv', 'devserver'].includes(action) && !isOcWeb
10 if (!skipClusterInfo) {
11 const deployEp = importMetaUrl ? absPathToPtPath(fileURLToPath(importMetaUrl) as any) : ''
12 envConf = {[inClusterKey]: cluster_name, deploymentName: name, appname: name, deployEp, ...envConf}
13 }
14 return envConf