[{"data":1,"prerenderedAt":140},["ShallowReactive",2],{"term-c\u002Fconfig":3,"related-c\u002Fconfig":127},{"id":4,"title":5,"acronym":6,"body":7,"category":107,"description":108,"difficulty":109,"extension":110,"letter":111,"meta":112,"navigation":113,"path":114,"related":115,"seo":121,"sitemap":122,"stem":125,"subcategory":6,"__hash__":126},"terms\u002Fterms\u002Fc\u002Fconfig.md","Config",null,{"type":8,"value":9,"toc":101},"minimark",[10,15,19,23,31,35,90,94,97],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Config is the settings panel for your code. Instead of hardcoding values like database URLs and API keys directly in your program, you put them in a config file. Change the settings, the behaviour changes — without touching the code itself.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25,26,30],{},"Configuration files externalise environment-specific or user-specific values from the codebase. They come in formats like ",[27,28,29],"code",{},".env",", YAML, JSON, TOML, or INI. Best practice is to never hardcode secrets and to keep config separate from code.",[11,32,34],{"id":33},"show-me-the-code","Show Me The Code",[36,37,42],"pre",{"className":38,"code":39,"language":40,"meta":41,"style":41},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# .env\nDATABASE_URL=postgres:\u002F\u002Fuser:pass@localhost:5432\u002Fmydb\nJWT_SECRET=supersecret\nPORT=3000\n","bash","",[27,43,44,53,68,79],{"__ignoreMap":41},[45,46,49],"span",{"class":47,"line":48},"line",1,[45,50,52],{"class":51},"sHwdD","# .env\n",[45,54,56,60,64],{"class":47,"line":55},2,[45,57,59],{"class":58},"sTEyZ","DATABASE_URL",[45,61,63],{"class":62},"sMK4o","=",[45,65,67],{"class":66},"sfazB","postgres:\u002F\u002Fuser:pass@localhost:5432\u002Fmydb\n",[45,69,71,74,76],{"class":47,"line":70},3,[45,72,73],{"class":58},"JWT_SECRET",[45,75,63],{"class":62},[45,77,78],{"class":66},"supersecret\n",[45,80,82,85,87],{"class":47,"line":81},4,[45,83,84],{"class":58},"PORT",[45,86,63],{"class":62},[45,88,89],{"class":66},"3000\n",[11,91,93],{"id":92},"when-youll-hear-this","When You'll Hear This",[16,95,96],{},"\"Check the config file for the database connection string.\" \u002F \"Never commit your config with secrets to git.\"",[98,99,100],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":41,"searchDepth":55,"depth":55,"links":102},[103,104,105,106],{"id":13,"depth":55,"text":14},{"id":21,"depth":55,"text":22},{"id":33,"depth":55,"text":34},{"id":92,"depth":55,"text":93},"general","Config is the settings panel for your code.","beginner","md","c",{},true,"\u002Fterms\u002Fc\u002Fconfig",[116,117,118,119,120],"YAML","Environment Variables","Boilerplate","Scaffold","Lock File",{"title":5,"description":108},{"changefreq":123,"priority":124},"weekly",0.7,"terms\u002Fc\u002Fconfig","xWf0Jo54-mp1W14J8gF5WukruqyoYoduZ4d2HXjvaeE",[128,131,134,137],{"title":118,"path":129,"acronym":6,"category":107,"difficulty":109,"description":130},"\u002Fterms\u002Fb\u002Fboilerplate","Code you have to write every single time you start a project but that doesn't actually do anything interesting.",{"title":120,"path":132,"acronym":6,"category":107,"difficulty":109,"description":133},"\u002Fterms\u002Fl\u002Flock-file","A lock file is a snapshot of the exact versions of every package your project is using right now.",{"title":119,"path":135,"acronym":6,"category":107,"difficulty":109,"description":136},"\u002Fterms\u002Fs\u002Fscaffold","Scaffolding is when a tool auto-generates the skeleton of your project for you.",{"title":116,"path":138,"acronym":116,"category":107,"difficulty":109,"description":139},"\u002Fterms\u002Fy\u002Fyaml","YAML is a way to write structured data that actually looks like a human wrote it.",1776518268525]