[{"data":1,"prerenderedAt":237},["ShallowReactive",2],{"docs-navigation":3,"docs-\u002Fdocs\u002Fenvironment-variable":43},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,14,19,25,31,37],{"title":10,"path":6,"stem":11,"navTitle":12,"order":13},"Overview","docs\u002Findex",null,1,{"title":15,"path":16,"stem":17,"navTitle":15,"order":18},"API client","\u002Fdocs\u002Fapi-client","docs\u002Fapi-client",3,{"title":20,"path":21,"stem":22,"navTitle":23,"order":24},"Inspecting and Querying Data","\u002Fdocs\u002Fdata-inspector","docs\u002Fdata-inspector","Data Inspector",5,{"title":26,"path":27,"stem":28,"navTitle":29,"order":30},"Connecting to Databases","\u002Fdocs\u002Fdatabase-client","docs\u002Fdatabase-client","Database Client",4,{"title":32,"path":33,"stem":34,"navTitle":35,"order":36},"Managing Environments and Variables","\u002Fdocs\u002Fenvironment-variable","docs\u002Fenvironment-variable","Environments & Variables",6,{"title":38,"path":39,"stem":40,"navTitle":41,"order":42},"Managing the Workspace","\u002Fdocs\u002Fworkspace","docs\u002Fworkspace","Workspace",2,{"id":44,"title":32,"body":45,"description":231,"extension":232,"meta":233,"navTitle":35,"navigation":234,"order":36,"path":33,"seo":235,"stem":34,"__hash__":236},"docs\u002Fdocs\u002Fenvironment-variable.md",{"type":46,"value":47,"toc":222},"minimark",[48,52,56,61,77,101,105,108,113,155,159,166,171,184,190,194],[49,50,32],"h1",{"id":51},"managing-environments-and-variables",[53,54,55],"p",{},"Environments and variables let you store reusable values—such as API keys, base URLs, or authentication tokens—and swap them across different configurations.",[57,58,60],"h2",{"id":59},"environments","Environments",[53,62,63,64,68,69,72,73,76],{},"An environment is a named set of key-value pairs representing a specific deployment stage, such as ",[65,66,67],"strong",{},"Local",", ",[65,70,71],{},"Development",", or ",[65,74,75],{},"Production",".",[78,79,80,95],"ul",{},[81,82,83,86,87,90,91,94],"li",{},[65,84,85],{},"Create and Manage",": Switch to the ",[65,88,89],{},"Environment"," tab in the sidebar to manage your sets. Click the ",[65,92,93],{},"+"," button to create a new environment.",[81,96,97,100],{},[65,98,99],{},"Switching",": Select the checkbox next to an environment in the sidebar to activate it. You can also switch environments using the dropdown menu on the right side of the tab bar.",[57,102,104],{"id":103},"variables","Variables",[53,106,107],{},"Variables are placeholders that PostPilot resolves to their assigned values before sending a request or executing a query.",[109,110,112],"h3",{"id":111},"creating-variables","Creating variables",[78,114,115,121,144],{},[81,116,117,120],{},[65,118,119],{},"Manual Entry",": Click an environment in the sidebar to open its editor, then add your keys and values.",[81,122,123,126,127,131,132,135,136,139,140,143],{},[65,124,125],{},"Extract from Results",": In the ",[128,129,23],"a",{"href":130},"..\u002Fdocs\u002Fdata-inspector"," or any query result row, click the ",[65,133,134],{},"Options"," (",[65,137,138],{},"...",") menu and select ",[65,141,142],{},"Extract to variable",". Enter a name; the query result is automatically assigned to this variable on every execution.",[81,145,146,149,150,154],{},[65,147,148],{},"Inline Creation",": Enter an undefined variable (e.g., ",[151,152,153],"code",{},"{{myVar}}",") in any supported field. The app triggers a popup allowing you to input a value and create the variable immediately.",[109,156,158],{"id":157},"using-variables","Using variables",[53,160,161,162,165],{},"Use the ",[151,163,164],{},"{{variableName}}"," syntax to reference variables.",[53,167,168],{},[65,169,170],{},"Supported fields:",[78,172,173,179],{},[81,174,175,178],{},[65,176,177],{},"API Client",": URL, Auth helpers, Header values, Parameter values, and Request Body (Raw, Form Data, or URL-encoded).",[81,180,181,183],{},[65,182,29],{},": SQL and NoSQL queries.",[53,185,186],{},[187,188,189],"em",{},"Note: Variable resolution is supported in values only; it is not supported in Header or Parameter keys.",[109,191,193],{"id":192},"autocomplete-and-behavior","Autocomplete and Behavior",[78,195,196,206,212],{},[81,197,198,201,202,205],{},[65,199,200],{},"Autocomplete",": Type ",[151,203,204],{},"{{"," in any supported field to see available variables.",[81,207,208,211],{},[65,209,210],{},"Resolution",": Variables are resolved from the currently active environment.",[81,213,214,217,218,221],{},[65,215,216],{},"Undefined Variables",": If a variable is missing or invalid, it renders as literal text (e.g., ",[151,219,220],{},"{{name}}",") and is sent as a raw string. Clicking an undefined variable in the UI opens the creation popup.",{"title":223,"searchDepth":42,"depth":42,"links":224},"",[225,226],{"id":59,"depth":42,"text":60},{"id":103,"depth":42,"text":104,"children":227},[228,229,230],{"id":111,"depth":18,"text":112},{"id":157,"depth":18,"text":158},{"id":192,"depth":18,"text":193},"Organize reusable values into environment sets to switch between local, staging, and production configurations.","md",{},true,{"title":32,"description":231},"6bLUD9ravNxY4U0rEW-GinT8RxPl1_XBo76_MWtPGSg",1777473474938]