import{C as e,E as t,Mt as n,W as r,_ as i,c as a,dt as o,h as s,m as c,v as l,w as u}from"./vendor/json-editor-vue-ddj4xtqm.js";import"./vendor/shiki-kunkft64.js";import{It as d,N as f,dt as p}from"#entry";import{t as m}from"./composables-g8w9dpc0.js";import{t as h}from"./help-fab-bhtk9hzf.js";import"./nicon-title-hrj2h1mn.js";import{t as g}from"./nsection-block-kp1wt3o4.js";import"./data-schema-button-j6fxaw99.js";import{t as _}from"./state-editor-gc0bkewv.js";var v={},y={class:`markdown-body`};function b(t,n){return r(),l(`div`,y,[...n[0]||=[s(`template`,null,[s(`div`,{class:`markdown-body`},[s(`h1`,null,`Runtime Configs`),s(`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.`),s(`p`,null,[e(`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 `),s(`code`,{"v-pre":``},`nuxt.config.js`),e(` file, or check more details in the documentation.`)]),s(`p`,null,[s(`a`,{href:`https://nuxt.com/docs/guide/going-further/runtime-config`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var x=f(v,[[`render`,b]]),S={key:0},C=t({__name:`runtime-configs`,setup(e){let t=d(),s=p(),f=c(()=>t.value?.nuxt.payload),m=c(()=>t.value?.revision.value),v=c(()=>{let e={...s.value};return delete e.public,delete e.app,e});return(e,s)=>{let c=_,d=g,p=x,y=h;return r(),l(a,null,[n(t)?(r(),l(`div`,S,[u(d,{icon:`carbon-settings-services`,text:`App Config`,padding:!1},{default:o(()=>[u(c,{state:n(t).app.appConfig,revision:m.value},null,8,[`state`,`revision`])]),_:1}),u(d,{icon:`carbon-settings`,text:`Public Runtime Config`,padding:!1},{default:o(()=>[u(c,{state:f.value.config?.public,revision:m.value},null,8,[`state`,`revision`])]),_:1}),u(d,{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:o(()=>[u(c,{state:v.value,revision:m.value,readonly:``},null,8,[`state`,`revision`])]),_:1})])):i(``,!0),u(y,null,{default:o(()=>[u(p)]),_:1})],64)}}});export{C as default};