import{_ as x}from"./state-editor-kisl1jyp.js";import{_ as b}from"./nsection-block-je23gs2w.js";import{b as y,f as C,bn as k}from"#entry";import{J as u,Y as l,a3 as e,ac as p,p as w,q as c,a4 as N,a1 as t,u as m,$ as i,F as R}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as T}from"./help-fab-chg6ox1v.js";import"./data-schema-button-hqryewml.js";import"./nicon-title-he6hzgyb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-hczpatch.js";const B={},V={class:"markdown-body"};function D(d,n){return l(),u("div",V,[...n[0]||(n[0]=[e("template",null,[e("div",{class:"markdown-body"},[e("h1",null,"Runtime Configs"),e("p",null,"Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables."),e("p",null,[p("In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your "),e("code",{"v-pre":""},"nuxt.config.js"),p(" file, or check more details in the documentation.")]),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")])])],-1)])])}const F=y(B,[["render",D]]),P={key:0},Y=w({__name:"runtime-configs",setup(d){const n=C(),_=k(),f=c(()=>n.value?.nuxt.payload),a=c(()=>n.value?.revision.value),v=c(()=>{const o={..._.value};return delete o.public,delete o.app,o});return(o,S)=>{const s=x,r=b,g=F,h=T;return l(),u(R,null,[m(n)?(l(),u("div",P,[t(r,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:i(()=>[t(s,{state:m(n).app.appConfig,revision:a.value},null,8,["state","revision"])]),_:1}),t(r,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:i(()=>[t(s,{state:f.value.config?.public,revision:a.value},null,8,["state","revision"])]),_:1}),t(r,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:i(()=>[t(s,{state:v.value,revision:a.value,readonly:""},null,8,["state","revision"])]),_:1})])):N("",!0),t(h,null,{default:i(()=>[t(g)]),_:1})],64)}}});export{Y as default};
