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