[{"data":1,"prerenderedAt":305},["ShallowReactive",2],{"navigation":3,"\u002Fblog\u002Fanimals":47,"\u002Fblog\u002Fanimals-surround":294},[4,22],{"title":5,"path":6,"stem":7,"children":8,"icon":21},"Getting Started","\u002Fdocs\u002Fgetting-started","1.docs\u002F1.getting-started\u002F1.index",[9,12,16],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-house",{"title":5,"path":13,"stem":14,"icon":15},"\u002Fdocs\u002Fgetting-started\u002Finstallation","1.docs\u002F1.getting-started\u002F2.installation","i-lucide-rocket",{"title":17,"path":18,"stem":19,"icon":20},"Deployment Workflow","\u002Fdocs\u002Fgetting-started\u002Fusage","1.docs\u002F1.getting-started\u002F3.usage","i-lucide-git-branch",false,{"title":23,"path":24,"stem":25,"children":26,"page":21},"Essentials","\u002Fdocs\u002Fessentials","1.docs\u002F2.essentials",[27,32,37,42],{"title":28,"path":29,"stem":30,"icon":31},"Custom Domains","\u002Fdocs\u002Fessentials\u002Fmarkdown-syntax","1.docs\u002F2.essentials\u002F1.markdown-syntax","i-lucide-link",{"title":33,"path":34,"stem":35,"icon":36},"Environment Variables","\u002Fdocs\u002Fessentials\u002Fcode-blocks","1.docs\u002F2.essentials\u002F2.code-blocks","i-lucide-key",{"title":38,"path":39,"stem":40,"icon":41},"Serverless Functions","\u002Fdocs\u002Fessentials\u002Fprose-components","1.docs\u002F2.essentials\u002F3.prose-components","i-lucide-server",{"title":43,"path":44,"stem":45,"icon":46},"Analytics & Monitoring","\u002Fdocs\u002Fessentials\u002Fimages-embeds","1.docs\u002F2.essentials\u002F4.images-embeds","i-lucide-bar-chart",{"id":48,"title":49,"authors":50,"badge":55,"body":57,"date":283,"description":284,"extension":285,"image":286,"meta":288,"navigation":289,"path":290,"seo":291,"stem":292,"__hash__":293},"posts\u002F3.blog\u002F5.animals.md","Migrating to DeployHub",[51],{"name":52,"avatar":53},"DeployHub Team",{"src":54},"https:\u002F\u002Fi.pravatar.cc\u002F128?u=4",{"label":56},"Migration",{"type":58,"value":59,"toc":265},"minimark",[60,65,69,73,76,89,93,113,117,120,131,135,138,149,153,156,167,171,174,185,189,192,203,207,212,229,233,244,248,262],[61,62,64],"h2",{"id":63},"migrating-your-applications-to-deployhub","Migrating Your Applications to DeployHub",[66,67,68],"p",{},"Migrating to DeployHub is straightforward. Here's a step-by-step guide.",[61,70,72],{"id":71},"step-1-prepare-your-repository","Step 1: Prepare Your Repository",[66,74,75],{},"Ensure your repository is ready for deployment:",[77,78,79,83,86],"ul",{},[80,81,82],"li",{},"Make sure your build command is configured correctly",[80,84,85],{},"Test your build locally",[80,87,88],{},"Ensure all dependencies are in package.json",[61,90,92],{"id":91},"step-2-create-a-new-project","Step 2: Create a New Project",[94,95,96,104,107,110],"ol",{},[80,97,98,99],{},"Go to ",[100,101,103],"a",{"href":102},"\u002Fsignup","deployhub.com\u002Fsignup",[80,105,106],{},"Click \"New Project\"",[80,108,109],{},"Connect your repository",[80,111,112],{},"Configure build settings",[61,114,116],{"id":115},"step-3-configure-environment-variables","Step 3: Configure Environment Variables",[66,118,119],{},"Add your environment variables in the project settings. This includes:",[77,121,122,125,128],{},[80,123,124],{},"API keys",[80,126,127],{},"Database connections",[80,129,130],{},"Third-party service credentials",[61,132,134],{"id":133},"step-4-test-with-preview-deployment","Step 4: Test with Preview Deployment",[66,136,137],{},"Before migrating traffic, create a preview deployment to test:",[77,139,140,143,146],{},[80,141,142],{},"Push a test branch",[80,144,145],{},"Verify the deployment works",[80,147,148],{},"Test all functionality",[61,150,152],{"id":151},"step-5-add-custom-domain","Step 5: Add Custom Domain",[66,154,155],{},"If you're migrating from another provider:",[94,157,158,161,164],{},[80,159,160],{},"Add your domain to DeployHub",[80,162,163],{},"Update DNS records (keep TTL low during migration)",[80,165,166],{},"Verify SSL certificate is provisioned",[61,168,170],{"id":169},"step-6-migrate-traffic","Step 6: Migrate Traffic",[66,172,173],{},"Once everything is tested:",[94,175,176,179,182],{},[80,177,178],{},"Update DNS records to point to DeployHub",[80,180,181],{},"Monitor traffic during migration",[80,183,184],{},"Keep old deployment running for a few days as backup",[61,186,188],{"id":187},"step-7-verify-and-optimize","Step 7: Verify and Optimize",[66,190,191],{},"After migration:",[77,193,194,197,200],{},[80,195,196],{},"Check analytics for any issues",[80,198,199],{},"Optimize performance settings",[80,201,202],{},"Set up monitoring alerts",[61,204,206],{"id":205},"framework-specific-tips","Framework Specific Tips",[208,209,211],"h3",{"id":210},"nextjs","Next.js",[77,213,214,222],{},[80,215,216,217,221],{},"Ensure ",[218,219,220],"code",{},"next.config.js"," has correct output settings",[80,223,224,225,228],{},"Use ",[218,226,227],{},"output: 'standalone'"," for optimal performance",[208,230,232],{"id":231},"nuxt","Nuxt",[77,234,235,241],{},[80,236,224,237,240],{},[218,238,239],{},"nuxt build"," as the build command",[80,242,243],{},"Configure runtimeConfig for environment variables",[208,245,247],{"id":246},"gatsby","Gatsby",[77,249,250,256],{},[80,251,252,253],{},"Build command: ",[218,254,255],{},"gatsby build",[80,257,258,259],{},"Output directory: ",[218,260,261],{},"public",[66,263,264],{},"Migrating to DeployHub is designed to be seamless. If you need help, our support team is available!",{"title":266,"searchDepth":267,"depth":267,"links":268},"",2,[269,270,271,272,273,274,275,276,277],{"id":63,"depth":267,"text":64},{"id":71,"depth":267,"text":72},{"id":91,"depth":267,"text":92},{"id":115,"depth":267,"text":116},{"id":133,"depth":267,"text":134},{"id":151,"depth":267,"text":152},{"id":169,"depth":267,"text":170},{"id":187,"depth":267,"text":188},{"id":205,"depth":267,"text":206,"children":278},[279,281,282],{"id":210,"depth":280,"text":211},3,{"id":231,"depth":280,"text":232},{"id":246,"depth":280,"text":247},"2024-05-05","How to migrate your existing applications to DeployHub","md",{"src":287},"https:\u002F\u002Fpicsum.photos\u002Fid\u002F50\u002F640\u002F360",{},true,"\u002Fblog\u002Fanimals",{"title":49,"description":284},"3.blog\u002F5.animals","IQOuWSvDxbbY05FCQny_mWdswRLCb7mWTO9Xsj3zkxU",[295,300],{"title":296,"path":297,"stem":298,"description":299,"children":-1},"Environment Variables Best Practices","\u002Fblog\u002Fmeditation","3.blog\u002F4.meditation","How to manage environment variables securely in DeployHub",{"title":301,"path":302,"stem":303,"description":304,"children":-1},"Team Collaboration Best Practices","\u002Fblog\u002Fcryptocurrencies","3.blog\u002F6.cryptocurrencies","How to work effectively with your team on DeployHub",1777349421065]