1import { isDirectlyRun } from "../../serverF/isDirectlyRunF.mts"2import { deployNextApp } from './deployNextAppF.mts'3import { wrapKubeCoalesce } from "../../deployF/k8sF/kubeCoalesceF.mts"4import { defaultAppCfg } from "../../deployF/defaultAppCfgF.mts"5import { baseRuntests, baseTestdeploy } from "../../deployF/testsF/baseTestConfigAI.mts"6import { dockerActions } from "../../deployF/ptDeployActions/dockerActionsAI.mts"7import { ptDeployActionsCtx } from "../../deployF/ptDeployActions/doPtDeployActionF.mts"8import { zipsecrets } from "../../deployF/ptDeployActions/zipsecretsActionAI.mts"9import { exceptions } from "../../deployF/ptDeployActions/exceptionsActionAI.mts"10import { checkimghealth } from "../../deployF/ptDeployActions/checkimghealthActionAI.mts"11import type { AppCfg } from "../../deployF/k8sF/ctxF/appCfgCtxF.mts"13export const eptNextjsAppK8sRes = {kind: 'Deployment', apiVersion: 'apps/v1'}15 appConfig = defaultAppCfg(appConfig)17 if (appConfig.importMetaUrl && !isDirectlyRun(appConfig.importMetaUrl)) {18 return appConfig19 }21 ptDeployActionsCtx.enterWith({...ptDeployActionsCtx.getStore(), runtests: baseRuntests, testdeploy: baseTestdeploy, ...dockerActions, zipsecrets, exceptions, checkimghealth})23 await wrapKubeCoalesce(deployNextApp, appConfig)24}