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