import{C as e,Mt as t,S as n,T as r,W as i,_ as a,dt as o,g as s,m as c,p as l,s as u}from"./vendor/json-editor-vue-9tyg6b65.js";import{k as d}from"./utils-ivfwadyv.js";import{r as f}from"./client-kfvz1zfh.js";import{t as p}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as m}from"./pages-dm1j9w83.js";import{t as h}from"./help-fab-myoje00l.js";import{t as g}from"./nsection-block-lfx32fn0.js";import{t as _}from"./state-editor-lokuhvoz.js";var v={},y={class:`markdown-body`};function b(e,t){return i(),a(`div`,y,[...t[0]||=[c(`template`,null,[c(`div`,{class:`markdown-body`},[c(`h1`,null,`Runtime Configs`),c(`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.`),c(`p`,null,[n(`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 `),c(`code`,{"v-pre":``},`nuxt.config.js`),n(` file, or check more details in the documentation.`)]),c(`p`,null,[c(`a`,{href:`https://nuxt.com/docs/guide/going-further/runtime-config`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var x=p(v,[[`render`,b]]),S={key:0},C=r({__name:`runtime-configs`,setup(n){m({icon:`carbon-settings-services`,title:`Runtime Configs`,category:`analyze`,show:()=>{let e=f();return()=>!!e.value},order:6});let r=f(),c=d(),p=l(()=>r.value?.nuxt.payload),v=l(()=>r.value?.revision.value),y=l(()=>{let e={...c.value};return delete e.public,delete e.app,e});return(n,c)=>{let l=_,d=g,f=x,m=h;return i(),a(u,null,[t(r)?(i(),a(`div`,S,[e(d,{icon:`carbon-settings-services`,text:`App Config`,padding:!1},{default:o(()=>[e(l,{state:t(r).app.appConfig,revision:v.value},null,8,[`state`,`revision`])]),_:1}),e(d,{icon:`carbon-settings`,text:`Public Runtime Config`,padding:!1},{default:o(()=>[e(l,{state:p.value.config?.public,revision:v.value},null,8,[`state`,`revision`])]),_:1}),e(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(()=>[e(l,{state:y.value,revision:v.value,readonly:``},null,8,[`state`,`revision`])]),_:1})])):s(``,!0),e(m,null,{default:o(()=>[e(f)]),_:1})],64)}}});export{C as default};