[{"data":1,"prerenderedAt":793},["ShallowReactive",2],{"navigation":3,"/docs/reference/environment-variables":137,"/docs/reference/environment-variables-surround":790},[4,123],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":113},"Docs","i-lucide-book","/docs","docs",[10,34,58,73,84,95,114],{"title":11,"path":12,"stem":13,"children":14,"icon":33},"Getting Started","/docs/getting-started","docs/1.getting-started/1.index",[15,17,21,25,29],{"title":16,"path":12,"stem":13},"Introduction",{"title":18,"path":19,"stem":20},"Installation","/docs/getting-started/installation","docs/1.getting-started/2.installation",{"title":22,"path":23,"stem":24},"Deploy","/docs/getting-started/deploy","docs/1.getting-started/3.deploy",{"title":26,"path":27,"stem":28},"Migration","/docs/getting-started/migration","docs/1.getting-started/4.migration",{"title":30,"path":31,"stem":32},"Environments","/docs/getting-started/environments","docs/1.getting-started/5.environments","i-lucide-rocket",{"title":35,"path":36,"stem":37,"children":38,"icon":57},"Database","/docs/database","docs/2.database/1.index",[39,41,45,49,53],{"title":40,"path":36,"stem":37},"Setup",{"title":42,"path":43,"stem":44},"Schema","/docs/database/schema","docs/2.database/2.schema",{"title":46,"path":47,"stem":48},"Queries","/docs/database/query","docs/2.database/3.query",{"title":50,"path":51,"stem":52},"Migrations","/docs/database/migrations","docs/2.database/4.migrations",{"title":54,"path":55,"stem":56},"CLI","/docs/database/cli","docs/2.database/cli","i-lucide-database",{"title":59,"path":60,"stem":61,"children":62,"icon":72},"Blob","/docs/blob","docs/3.blob/1.index",[63,64,68],{"title":40,"path":60,"stem":61},{"title":65,"path":66,"stem":67},"Upload","/docs/blob/upload","docs/3.blob/2.upload",{"title":69,"path":70,"stem":71},"Blob SDK","/docs/blob/usage","docs/3.blob/3.usage","i-lucide-shapes",{"title":74,"path":75,"stem":76,"children":77,"icon":83},"Key Value","/docs/kv","docs/4.kv/1.index",[78,79],{"title":40,"path":75,"stem":76},{"title":80,"path":81,"stem":82},"KV SDK","/docs/kv/usage","docs/4.kv/2.usage","i-lucide-list",{"title":85,"path":86,"stem":87,"children":88,"icon":94},"Cache","/docs/cache","docs/5.cache/1.index",[89,90],{"title":40,"path":86,"stem":87},{"title":91,"path":92,"stem":93},"Usage","/docs/cache/usage","docs/5.cache/2.usage","i-lucide-zap",{"title":96,"icon":97,"path":98,"stem":99,"children":100,"page":113},"Guides","i-lucide-book-text","/docs/guides","docs/6.guides",[101,105,109],{"title":102,"path":103,"stem":104},"Pre-rendering","/docs/guides/pre-rendering","docs/6.guides/1.pre-rendering",{"title":106,"path":107,"stem":108},"Realtime","/docs/guides/realtime","docs/6.guides/2.realtime",{"title":110,"path":111,"stem":112},"CI/CD","/docs/guides/ci-cd","docs/6.guides/3.ci-cd",false,{"title":115,"path":116,"stem":117,"children":118,"page":113},"Reference","/docs/reference","docs/7.reference",[119],{"title":120,"path":121,"stem":122},"Environment Variables","/docs/reference/environment-variables","docs/7.reference/1.environment-variables",{"title":124,"icon":125,"path":126,"stem":127,"children":128,"page":113},"Changelog","i-lucide-megaphone","/changelog","changelog",[129,133],{"title":130,"path":131,"stem":132},"NuxtHub Multi-Vendor is now available","/changelog/nuxthub-multi-vendor","changelog/nuxthub-multi-vendor",{"title":134,"path":135,"stem":136},"Self-Hosting First & Cloud-Agnostic Future","/changelog/self-hosting-first","changelog/self-hosting-first",{"id":138,"title":120,"body":139,"description":783,"extension":784,"links":785,"meta":786,"navigation":787,"path":121,"seo":788,"stem":122,"__hash__":789},"docs/docs/7.reference/1.environment-variables.md",{"type":140,"value":141,"toc":755},"minimark",[142,146,150,155,217,221,257,261,334,342,346,353,395,399,403,484,488,510,514,518,550,554,576,580,583,622,625,629,682,686,689,692,702,705,712,716,725,729,736,739,744],[143,144,145],"p",{},"NuxtHub automatically detects and configures resources based on environment variables. The following reference covers all supported variables, organized by feature.",[147,148,35],"h2",{"id":149},"database",[151,152,154],"h3",{"id":153},"postgresql","PostgreSQL",[156,157,158,174],"table",{},[159,160,161],"thead",{},[162,163,164,168,171],"tr",{},[165,166,167],"th",{},"Variable",[165,169,170],{},"Description",[165,172,173],{},"Priority",[175,176,177,192,204],"tbody",{},[162,178,179,186,189],{},[180,181,182],"td",{},[183,184,185],"code",{},"POSTGRES_URL",[180,187,188],{},"PostgreSQL connection string",[180,190,191],{},"1st",[162,193,194,199,201],{},[180,195,196],{},[183,197,198],{},"POSTGRESQL_URL",[180,200,188],{},[180,202,203],{},"2nd",[162,205,206,211,214],{},[180,207,208],{},[183,209,210],{},"DATABASE_URL",[180,212,213],{},"Generic database connection string",[180,215,216],{},"3rd",[151,218,220],{"id":219},"mysql","MySQL",[156,222,223,233],{},[159,224,225],{},[162,226,227,229,231],{},[165,228,167],{},[165,230,170],{},[165,232,173],{},[175,234,235,247],{},[162,236,237,242,245],{},[180,238,239],{},[183,240,241],{},"MYSQL_URL",[180,243,244],{},"MySQL connection string",[180,246,191],{},[162,248,249,253,255],{},[180,250,251],{},[183,252,210],{},[180,254,213],{},[180,256,203],{},[151,258,260],{"id":259},"sqlite-turso","SQLite / Turso",[156,262,263,273],{},[159,264,265],{},[162,266,267,269,271],{},[165,268,167],{},[165,270,170],{},[165,272,173],{},[175,274,275,287,300,312,324],{},[162,276,277,282,285],{},[180,278,279],{},[183,280,281],{},"TURSO_DATABASE_URL",[180,283,284],{},"Turso database URL",[180,286,191],{},[162,288,289,294,297],{},[180,290,291],{},[183,292,293],{},"TURSO_AUTH_TOKEN",[180,295,296],{},"Turso authentication token",[180,298,299],{},"-",[162,301,302,307,310],{},[180,303,304],{},[183,305,306],{},"LIBSQL_URL",[180,308,309],{},"libSQL database URL",[180,311,203],{},[162,313,314,319,322],{},[180,315,316],{},[183,317,318],{},"LIBSQL_AUTH_TOKEN",[180,320,321],{},"libSQL authentication token",[180,323,299],{},[162,325,326,330,332],{},[180,327,328],{},[183,329,210],{},[180,331,213],{},[180,333,216],{},[335,336,337,338,341],"note",{},"When no environment variables are set, NuxtHub falls back to a local SQLite file at ",[183,339,340],{},".data/db/sqlite.db",".",[151,343,345],{"id":344},"d1-over-http","D1 over HTTP",[143,347,348,349,352],{},"These variables are required when using the ",[183,350,351],{},"d1-http"," driver to access Cloudflare D1 from non-Cloudflare hosts.",[156,354,355,363],{},[159,356,357],{},[162,358,359,361],{},[165,360,167],{},[165,362,170],{},[175,364,365,375,385],{},[162,366,367,372],{},[180,368,369],{},[183,370,371],{},"NUXT_HUB_CLOUDFLARE_ACCOUNT_ID",[180,373,374],{},"Your Cloudflare account ID",[162,376,377,382],{},[180,378,379],{},[183,380,381],{},"NUXT_HUB_CLOUDFLARE_API_TOKEN",[180,383,384],{},"Cloudflare API token with D1 permissions",[162,386,387,392],{},[180,388,389],{},[183,390,391],{},"NUXT_HUB_CLOUDFLARE_DATABASE_ID",[180,393,394],{},"The ID of your D1 database",[147,396,398],{"id":397},"blob-storage","Blob Storage",[151,400,402],{"id":401},"s3-r2","S3 / R2",[156,404,405,416],{},[159,406,407],{},[162,408,409,411,413],{},[165,410,167],{},[165,412,170],{},[165,414,415],{},"Required",[175,417,418,431,443,455,471],{},[162,419,420,425,428],{},[180,421,422],{},[183,423,424],{},"S3_ACCESS_KEY_ID",[180,426,427],{},"AWS or R2 access key ID",[180,429,430],{},"Yes",[162,432,433,438,441],{},[180,434,435],{},[183,436,437],{},"S3_SECRET_ACCESS_KEY",[180,439,440],{},"AWS or R2 secret access key",[180,442,430],{},[162,444,445,450,453],{},[180,446,447],{},[183,448,449],{},"S3_BUCKET",[180,451,452],{},"Bucket name",[180,454,430],{},[162,456,457,462,469],{},[180,458,459],{},[183,460,461],{},"S3_REGION",[180,463,464,465,468],{},"AWS region (use ",[183,466,467],{},"auto"," for R2)",[180,470,430],{},[162,472,473,478,481],{},[180,474,475],{},[183,476,477],{},"S3_ENDPOINT",[180,479,480],{},"Custom endpoint URL (required for R2)",[180,482,483],{},"R2 only",[151,485,487],{"id":486},"vercel-blob","Vercel Blob",[156,489,490,498],{},[159,491,492],{},[162,493,494,496],{},[165,495,167],{},[165,497,170],{},[175,499,500],{},[162,501,502,507],{},[180,503,504],{},[183,505,506],{},"BLOB_READ_WRITE_TOKEN",[180,508,509],{},"Vercel Blob read/write token",[147,511,513],{"id":512},"key-value-storage","Key-Value Storage",[151,515,517],{"id":516},"upstash-redis","Upstash Redis",[156,519,520,528],{},[159,521,522],{},[162,523,524,526],{},[165,525,167],{},[165,527,170],{},[175,529,530,540],{},[162,531,532,537],{},[180,533,534],{},[183,535,536],{},"UPSTASH_REDIS_REST_URL",[180,538,539],{},"Upstash Redis REST URL",[162,541,542,547],{},[180,543,544],{},[183,545,546],{},"UPSTASH_REDIS_REST_TOKEN",[180,548,549],{},"Upstash Redis REST token",[151,551,553],{"id":552},"redis","Redis",[156,555,556,564],{},[159,557,558],{},[162,559,560,562],{},[165,561,167],{},[165,563,170],{},[175,565,566],{},[162,567,568,573],{},[180,569,570],{},[183,571,572],{},"REDIS_URL",[180,574,575],{},"Redis connection URL",[147,577,579],{"id":578},"cache-devtools","Cache DevTools",[143,581,582],{},"These variables are required for cache management in Nuxt DevTools when self-hosting on Cloudflare.",[156,584,585,593],{},[159,586,587],{},[162,588,589,591],{},[165,590,167],{},[165,592,170],{},[175,594,595,603,612],{},[162,596,597,601],{},[180,598,599],{},[183,600,371],{},[180,602,374],{},[162,604,605,609],{},[180,606,607],{},[183,608,381],{},[180,610,611],{},"Cloudflare API token with KV permissions",[162,613,614,619],{},[180,615,616],{},[183,617,618],{},"NUXT_HUB_CLOUDFLARE_CACHE_NAMESPACE_ID",[180,620,621],{},"KV namespace ID for cache storage",[335,623,624],{},"These variables are only required for DevTools cache management. Normal cache operations work directly through KV bindings without additional configuration.",[147,626,628],{"id":627},"build-deployment","Build & Deployment",[156,630,631,642],{},[159,632,633],{},[162,634,635,637,639],{},[165,636,167],{},[165,638,170],{},[165,640,641],{},"Used By",[175,643,644,657,670],{},[162,645,646,651,654],{},[180,647,648],{},[183,649,650],{},"CLOUDFLARE_ENV",[180,652,653],{},"Wrangler environment to use during build",[180,655,656],{},"Cloudflare",[162,658,659,664,667],{},[180,660,661],{},[183,662,663],{},"NUXT_HUB_PROJECT_KEY",[180,665,666],{},"NuxtHub project key (deprecated)",[180,668,669],{},"NuxtHub Admin",[162,671,672,677,680],{},[180,673,674],{},[183,675,676],{},"NUXT_HUB_USER_TOKEN",[180,678,679],{},"NuxtHub user token (deprecated)",[180,681,669],{},[147,683,685],{"id":684},"detection-priority","Detection Priority",[143,687,688],{},"NuxtHub checks environment variables in a specific order and uses the first one found. If none are set, it falls back to local development defaults where available.",[151,690,154],{"id":691},"postgresql-1",[143,693,694,696,697,696,699,701],{},[183,695,185],{}," → ",[183,698,198],{},[183,700,210],{}," → PGlite (local)",[151,703,220],{"id":704},"mysql-1",[143,706,707,696,709,711],{},[183,708,241],{},[183,710,210],{}," → error (no local fallback available)",[151,713,715],{"id":714},"sqlite","SQLite",[143,717,718,696,720,696,722,724],{},[183,719,281],{},[183,721,306],{},[183,723,210],{}," → local file",[151,726,728],{"id":727},"kv","KV",[143,730,731,696,733,735],{},[183,732,536],{},[183,734,572],{}," → filesystem",[151,737,59],{"id":738},"blob",[143,740,741,742,735],{},"S3 variables → ",[183,743,506],{},[745,746,747,748,751,752,754],"tip",{},"Configure environment variables in your hosting provider's dashboard or in a ",[183,749,750],{},".env"," file for local development. Never commit ",[183,753,750],{}," files to version control.",{"title":756,"searchDepth":757,"depth":757,"links":758},"",2,[759,766,770,774,775,776],{"id":149,"depth":757,"text":35,"children":760},[761,763,764,765],{"id":153,"depth":762,"text":154},3,{"id":219,"depth":762,"text":220},{"id":259,"depth":762,"text":260},{"id":344,"depth":762,"text":345},{"id":397,"depth":757,"text":398,"children":767},[768,769],{"id":401,"depth":762,"text":402},{"id":486,"depth":762,"text":487},{"id":512,"depth":757,"text":513,"children":771},[772,773],{"id":516,"depth":762,"text":517},{"id":552,"depth":762,"text":553},{"id":578,"depth":757,"text":579},{"id":627,"depth":757,"text":628},{"id":684,"depth":757,"text":685,"children":777},[778,779,780,781,782],{"id":691,"depth":762,"text":154},{"id":704,"depth":762,"text":220},{"id":714,"depth":762,"text":715},{"id":727,"depth":762,"text":728},{"id":738,"depth":762,"text":59},"Reference for all environment variables used by NuxtHub for database, blob storage, KV, cache, and deployment configuration.","md",null,{},{"title":120},{"title":120,"description":783},"A0cnpsVZdQqumbStwYLy4uUWfZeaPXQQVLxuz-saQZE",[791,785],{"title":110,"path":111,"stem":112,"description":792,"children":-1},"Set up continuous integration and deployment for your NuxtHub application with proper database migration handling.",1774053876358]