[{"data":1,"prerenderedAt":515,"buildId":516},["ShallowReactive",2],{"\u002Fdocs\u002Fgetting-started\u002Fpull-updates":3,"\u002Fdocs\u002Fgetting-started\u002Fpull-updates-docs-surround":281,"contentNavigation":290,"docsNavigation":461},{"id":4,"title":5,"body":6,"description":269,"extension":270,"links":271,"meta":272,"navigation":273,"path":275,"seo":276,"sitemap":277,"stem":279,"__hash__":280},"docs\u002Fdocs\u002F01.getting-started\u002F4.pull-updates.md","Pull Updates from the Starter Kit Repository",{"type":7,"value":8,"toc":260},"minimark",[9,13,34,39,70,77,81,84,99,103,106,154,158,161,184,199,203,206,210,213,217,220,256],[10,11,12],"p",{},"To pull updates from the original repository, you need to add it as a remote. This allows you to fetch and merge changes from the original repository into your fork.",[14,15,16],"warning",{},[10,17,18,19,23,24,27,28,33],{},"The layer architecture moved almost every file from ",[20,21,22],"code",{},"packages\u002Flayer-*"," to ",[20,25,26],{},"apps\u002Fweb\u002Flayers\u002F*"," and renamed environment variables. If your project is based on the older Turborepo version, read ",[29,30,32],"a",{"href":31},"\u002Fdocs\u002Fgetting-started\u002Fupgrade-to-layer-architecture","Upgrade to the Layer Architecture"," before you merge.",[35,36,38],"h3",{"id":37},"_1-adding-the-original-repository-as-a-remote","1. Adding the original repository as a remote",[40,41,46],"pre",{"className":42,"code":43,"language":44,"meta":45,"style":45},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","git remote add origin https:\u002F\u002Fgithub.com\u002FNuxtStarterKit\u002Fnuxtstarterkit.git\n","bash","",[20,47,48],{"__ignoreMap":45},[49,50,53,57,61,64,67],"span",{"class":51,"line":52},"line",1,[49,54,56],{"class":55},"sBMFI","git",[49,58,60],{"class":59},"sfazB"," remote",[49,62,63],{"class":59}," add",[49,65,66],{"class":59}," origin",[49,68,69],{"class":59}," https:\u002F\u002Fgithub.com\u002FNuxtStarterKit\u002Fnuxtstarterkit.git\n",[10,71,72,73,76],{},"This command adds the original repository as a remote named ",[20,74,75],{},"origin",".",[35,78,80],{"id":79},"_2-fetch-the-latest-changes","2. Fetch the latest changes",[10,82,83],{},"Run the following command to fetch the latest changes from the original repository:",[40,85,87],{"className":42,"code":86,"language":44,"meta":45,"style":45},"git fetch origin\n",[20,88,89],{"__ignoreMap":45},[49,90,91,93,96],{"class":51,"line":52},[49,92,56],{"class":55},[49,94,95],{"class":59}," fetch",[49,97,98],{"class":59}," origin\n",[35,100,102],{"id":101},"_3-create-a-new-branch","3. Create a new branch",[10,104,105],{},"I would recommend creating a new branch for the updates. This way, you can test the changes before merging them into your main branch:",[40,107,109],{"className":42,"code":108,"language":44,"meta":45,"style":45},"# Switch to the main branch\ngit checkout main\n\n# Create a new branch for the updates\ngit checkout -b update-branch\n",[20,110,111,117,128,135,141],{"__ignoreMap":45},[49,112,113],{"class":51,"line":52},[49,114,116],{"class":115},"sHwdD","# Switch to the main branch\n",[49,118,120,122,125],{"class":51,"line":119},2,[49,121,56],{"class":55},[49,123,124],{"class":59}," checkout",[49,126,127],{"class":59}," main\n",[49,129,131],{"class":51,"line":130},3,[49,132,134],{"emptyLinePlaceholder":133},true,"\n",[49,136,138],{"class":51,"line":137},4,[49,139,140],{"class":115},"# Create a new branch for the updates\n",[49,142,144,146,148,151],{"class":51,"line":143},5,[49,145,56],{"class":55},[49,147,124],{"class":59},[49,149,150],{"class":59}," -b",[49,152,153],{"class":59}," update-branch\n",[35,155,157],{"id":156},"_4-merge-the-changes","4. Merge the changes",[10,159,160],{},"Now, you can merge the changes from the original repository into your new branch:",[40,162,164],{"className":42,"code":163,"language":44,"meta":45,"style":45},"git pull origin main --allow-unrelated-histories --no-rebase\n",[20,165,166],{"__ignoreMap":45},[49,167,168,170,173,175,178,181],{"class":51,"line":52},[49,169,56],{"class":55},[49,171,172],{"class":59}," pull",[49,174,66],{"class":59},[49,176,177],{"class":59}," main",[49,179,180],{"class":59}," --allow-unrelated-histories",[49,182,183],{"class":59}," --no-rebase\n",[10,185,186,187,190,191,194,195,198],{},"With this command, you are merging the changes from the ",[20,188,189],{},"main"," branch of the original repository into your current branch. The ",[20,192,193],{},"--allow-unrelated-histories"," flag allows merging two unrelated histories, and the ",[20,196,197],{},"--no-rebase"," flag prevents rebasing the changes.",[35,200,202],{"id":201},"_5-resolve-any-conflicts","5. Resolve any conflicts",[10,204,205],{},"If there are any merge conflicts, Git will notify you. You will need to resolve these conflicts manually with your tool of choice (e.g., VSCode, WebStorm, etc.).",[35,207,209],{"id":208},"_6-test-the-changes","6. Test the changes",[10,211,212],{},"After resolving any conflicts, it's important to test the changes to ensure everything works as expected. Run your application and check for any issues.",[35,214,216],{"id":215},"_7-merge-the-updates-into-your-main-branch","7. Merge the updates into your main branch",[10,218,219],{},"Once you have tested the changes and resolved any conflicts, you can commit the changes to your branch:",[40,221,223],{"className":42,"code":222,"language":44,"meta":45,"style":45},"# Switch back to the main branch\ngit checkout main\n\n# Merge the updates from the temporary branch\ngit merge update-branch\n",[20,224,225,230,238,242,247],{"__ignoreMap":45},[49,226,227],{"class":51,"line":52},[49,228,229],{"class":115},"# Switch back to the main branch\n",[49,231,232,234,236],{"class":51,"line":119},[49,233,56],{"class":55},[49,235,124],{"class":59},[49,237,127],{"class":59},[49,239,240],{"class":51,"line":130},[49,241,134],{"emptyLinePlaceholder":133},[49,243,244],{"class":51,"line":137},[49,245,246],{"class":115},"# Merge the updates from the temporary branch\n",[49,248,249,251,254],{"class":51,"line":143},[49,250,56],{"class":55},[49,252,253],{"class":59}," merge",[49,255,153],{"class":59},[257,258,259],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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);}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}",{"title":45,"searchDepth":119,"depth":119,"links":261},[262,263,264,265,266,267,268],{"id":37,"depth":130,"text":38},{"id":79,"depth":130,"text":80},{"id":101,"depth":130,"text":102},{"id":156,"depth":130,"text":157},{"id":201,"depth":130,"text":202},{"id":208,"depth":130,"text":209},{"id":215,"depth":130,"text":216},"Add the kit repository as a Git remote, fetch the latest changes and merge them into your project on a separate branch, so you can test them first.","md",null,{},{"title":274},"Pull Updates","\u002Fdocs\u002Fgetting-started\u002Fpull-updates",{"title":5,"description":269},{"loc":275,"lastmod":278},"2026-12-02","docs\u002F01.getting-started\u002F4.pull-updates","CMs_9iVwSIp9ZxsorKXvlGGuD1CqP3b1LGboO55y8xs",[282,287],{"title":283,"path":284,"stem":285,"description":286,"children":-1},"Setup","\u002Fdocs\u002Fgetting-started\u002Fsetup","docs\u002F01.getting-started\u002F3.setup","Install dependencies with pnpm, fill in the Zod-validated environment variables in apps\u002Fweb\u002F.env and create the PostgreSQL schema for your Nuxt app.",{"title":32,"path":31,"stem":288,"description":289,"children":-1},"docs\u002F01.getting-started\u002F5.upgrade-to-layer-architecture","Move a project from the Turborepo version of Nuxt Starter Kit to the layer architecture: new .env location, Zod-validated config and moved folders.",[291,321],{"title":292,"path":293,"stem":294,"children":295,"page":320},"Blog","\u002Fblog","blog",[296,300,304,308,312,316],{"title":297,"path":298,"stem":299},"How to Build a SaaS with Nuxt 4, better-auth, and Polar","\u002Fblog\u002Fbuild-saas-with-nuxt-4-better-auth-polar","blog\u002Fbuild-saas-with-nuxt-4-better-auth-polar",{"title":301,"path":302,"stem":303},"DIY vs Nuxt Starter Kit - The Real Cost of Auth and Payments","\u002Fblog\u002Fdiy-vs-nuxt-starter-kit-cost","blog\u002Fdiy-vs-nuxt-starter-kit-cost",{"title":305,"path":306,"stem":307},"Nuxt Boilerplate for Solo Founders - Ship Without Rebuilding Foundations","\u002Fblog\u002Fnuxt-boilerplate-for-solo-founders","blog\u002Fnuxt-boilerplate-for-solo-founders",{"title":309,"path":310,"stem":311},"Best Nuxt SaaS Boilerplate in 2026 - What Actually Matters","\u002Fblog\u002Fnuxt-saas-boilerplate-comparison","blog\u002Fnuxt-saas-boilerplate-comparison",{"title":313,"path":314,"stem":315},"Nuxt Starter Kit v3: Delete the Features You Don't Need","\u002Fblog\u002Fnuxt-starter-kit-v3-layer-architecture","blog\u002Fnuxt-starter-kit-v3-layer-architecture",{"title":317,"path":318,"stem":319},"Polar Checkout and Customer Portal in Nuxt with the better-auth Plugin","\u002Fblog\u002Fpolar-checkout-customer-portal-better-auth-nuxt","blog\u002Fpolar-checkout-customer-portal-better-auth-nuxt",false,{"title":322,"path":323,"stem":324,"children":325,"page":320},"Documentation","\u002Fdocs","docs",[326,349,361,369,377,384,392,400,407,414,421,429,436,443,455],{"title":327,"path":328,"stem":329,"children":330,"icon":348},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started\u002F1.index",[331,333,337,338,339,340,344],{"title":332,"path":328,"stem":329},"Introduction",{"title":334,"path":335,"stem":336},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F01.getting-started\u002F2.installation",{"title":283,"path":284,"stem":285},{"title":274,"path":275,"stem":279},{"title":32,"path":31,"stem":288},{"title":341,"path":342,"stem":343},"Deployment","\u002Fdocs\u002Fgetting-started\u002Fdeployment","docs\u002F01.getting-started\u002F6.deployment",{"title":345,"path":346,"stem":347},"Going to production","\u002Fdocs\u002Fgetting-started\u002Fgoing-to-production","docs\u002F01.getting-started\u002F7.going-to-production","i-lucide-square-play",{"title":350,"path":351,"stem":352,"children":353,"icon":360},"Architecture","\u002Fdocs\u002Farchitecture","docs\u002F02.architecture\u002F1.index",[354,356],{"title":355,"path":351,"stem":352},"Tech Stack",{"title":357,"path":358,"stem":359},"Layers","\u002Fdocs\u002Farchitecture\u002Flayers","docs\u002F02.architecture\u002F2.layers","i-lucide-layers",{"title":362,"path":363,"stem":364,"children":365,"icon":368},"Database","\u002Fdocs\u002Fdatabase","docs\u002F03.database\u002F1.index",[366],{"title":367,"path":363,"stem":364},"PostgreSQL","i-lucide-database",{"title":370,"path":371,"stem":372,"children":373,"icon":376},"Emails","\u002Fdocs\u002Femails","docs\u002F04.emails\u002F1.index",[374],{"title":375,"path":371,"stem":372},"Overview","i-lucide-mail",{"title":378,"path":379,"stem":380,"children":381,"icon":383},"Authentication","\u002Fdocs\u002Fauthentication","docs\u002F05.authentication\u002F1.index",[382],{"title":375,"path":379,"stem":380},"i-lucide-lock-keyhole",{"title":385,"path":386,"stem":387,"children":388,"icon":391},"Payments","\u002Fdocs\u002Fpayments","docs\u002F06.payments\u002F1.index",[389],{"title":390,"path":386,"stem":387},"Polar","i-lucide-circle-dollar-sign",{"title":393,"path":394,"stem":395,"children":396,"icon":399},"Admin","\u002Fdocs\u002Fadmin","docs\u002F07.admin\u002F1.index",[397],{"title":398,"path":394,"stem":395},"Features","i-lucide-user-cog",{"title":401,"path":402,"stem":403,"children":404,"icon":406},"Images","\u002Fdocs\u002Fimages","docs\u002F08.images\u002F1.index",[405],{"title":375,"path":402,"stem":403},"i-lucide-image",{"title":408,"path":409,"stem":410,"children":411,"icon":413},"i18n","\u002Fdocs\u002Fi18n","docs\u002F09.i18n\u002F1.index",[412],{"title":375,"path":409,"stem":410},"i-lucide-languages",{"title":415,"path":416,"stem":417,"children":418,"icon":420},"SEO","\u002Fdocs\u002Fseo","docs\u002F10.seo\u002F1.index",[419],{"title":375,"path":416,"stem":417},"i-lucide-globe",{"title":422,"path":423,"stem":424,"children":425,"icon":428},"Analytics","\u002Fdocs\u002Fanalytics","docs\u002F11.analytics\u002F1.index",[426],{"title":427,"path":423,"stem":424},"Umami","i-lucide-chart-line",{"title":430,"path":431,"stem":432,"children":433,"icon":435},"Security","\u002Fdocs\u002Fsecurity","docs\u002F12.security\u002F1.index",[434],{"title":375,"path":431,"stem":432},"i-lucide-file-lock",{"title":437,"path":438,"stem":439,"children":440,"icon":442},"Testing","\u002Fdocs\u002Ftesting","docs\u002F13.testing\u002F1.index",[441],{"title":437,"path":438,"stem":439},"i-lucide-test-tube",{"title":444,"path":445,"stem":446,"children":447,"icon":454},"Support","\u002Fdocs\u002Fsupport","docs\u002F14.support\u002F1.index",[448,450],{"title":449,"path":445,"stem":446},"Help",{"title":451,"path":452,"stem":453},"Troubleshooting","\u002Fdocs\u002Fsupport\u002Ftroubleshooting","docs\u002F14.support\u002F2.troubleshooting","i-lucide-message-circle-question",{"title":456,"path":457,"stem":458,"children":459},"LLMs","\u002Fdocs\u002Fllms","docs\u002F15.llms\u002F1.index",[460],{"title":456,"path":457,"stem":458},[462,471,475,478,481,484,487,490,493,496,499,502,505,508,512],{"title":327,"path":328,"stem":329,"children":463,"icon":348},[464,465,466,467,468,469,470],{"title":332,"path":328,"stem":329},{"title":334,"path":335,"stem":336},{"title":283,"path":284,"stem":285},{"title":274,"path":275,"stem":279},{"title":32,"path":31,"stem":288},{"title":341,"path":342,"stem":343},{"title":345,"path":346,"stem":347},{"title":350,"path":351,"stem":352,"children":472,"icon":360},[473,474],{"title":355,"path":351,"stem":352},{"title":357,"path":358,"stem":359},{"title":362,"path":363,"stem":364,"children":476,"icon":368},[477],{"title":367,"path":363,"stem":364},{"title":370,"path":371,"stem":372,"children":479,"icon":376},[480],{"title":375,"path":371,"stem":372},{"title":378,"path":379,"stem":380,"children":482,"icon":383},[483],{"title":375,"path":379,"stem":380},{"title":385,"path":386,"stem":387,"children":485,"icon":391},[486],{"title":390,"path":386,"stem":387},{"title":393,"path":394,"stem":395,"children":488,"icon":399},[489],{"title":398,"path":394,"stem":395},{"title":401,"path":402,"stem":403,"children":491,"icon":406},[492],{"title":375,"path":402,"stem":403},{"title":408,"path":409,"stem":410,"children":494,"icon":413},[495],{"title":375,"path":409,"stem":410},{"title":415,"path":416,"stem":417,"children":497,"icon":420},[498],{"title":375,"path":416,"stem":417},{"title":422,"path":423,"stem":424,"children":500,"icon":428},[501],{"title":427,"path":423,"stem":424},{"title":430,"path":431,"stem":432,"children":503,"icon":435},[504],{"title":375,"path":431,"stem":432},{"title":437,"path":438,"stem":439,"children":506,"icon":442},[507],{"title":437,"path":438,"stem":439},{"title":444,"path":445,"stem":446,"children":509,"icon":454},[510,511],{"title":449,"path":445,"stem":446},{"title":451,"path":452,"stem":453},{"title":456,"path":457,"stem":458,"children":513},[514],{"title":456,"path":457,"stem":458},1796282654038,"e90768e1-1006-4f68-a0b7-e7c6553b660f"]