import{_ as x}from"./Bn0Th_SW.js";import{_ as y}from"./DrETHS_h.js";import{o as l,m as p,k as n,v as d,d as b,am as C,bG as k,a as u,f as t,i as e,j as a,p as w,F as N}from"./CAAfHP_R.js";import{_ as R}from"./C90a2Mbv.js";import"./Cx373ZJy.js";import"./DROQPQ1U.js";import"./SV1FZgNA.js";const T={class:"markdown-body"},B=n("h1",null,"Runtime Configs",-1),V=n("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.",-1),$=n("p",null,[d("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 "),n("code",null,"nuxt.config.js"),d(" file, or check more details in the documentation.")],-1),D=n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),F=[B,V,$,D],P={__name:"runtime-configs",setup(f,{expose:o}){return o({frontmatter:{}}),(m,i)=>(l(),p("div",T,F))}},S=P,j={key:0},J=b({__name:"runtime-configs",setup(f){const o=C(),_=k(),m=u(()=>o.value?.nuxt.payload),i=u(()=>o.value?.revision.value),g=u(()=>{const s={..._.value};return delete s.public,delete s.app,s});return(s,A)=>{const r=x,c=y,h=S,v=R;return l(),p(N,null,[t(o)?(l(),p("div",j,[e(c,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:a(()=>[e(r,{state:t(o).app.appConfig,revision:t(i)},null,8,["state","revision"])]),_:1}),e(c,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:a(()=>[e(r,{state:t(m).config?.public,revision:t(i)},null,8,["state","revision"])]),_:1}),e(c,{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:a(()=>[e(r,{state:t(g),revision:t(i),readonly:""},null,8,["state","revision"])]),_:1})])):w("",!0),e(v,null,{default:a(()=>[e(h)]),_:1})],64)}}});export{J as default};
