From e9cc0bc136697cf891441e33be07255a133a2cbb Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Thu, 22 May 2025 15:54:20 -0500 Subject: [PATCH] chore(amplify): remove Node.js installation command from preBuild phase This commit simplifies the amplify.yml file by removing the explicit Node.js installation command, relying instead on the nvm use command to ensure the correct version is utilized during the build process. Additionally, it updates the import path for the InventoryManager component to reflect its new location in the main-components directory, improving code organization. --- amplify.yml | 1 - app/store/[slug]/products/inventory/page.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/amplify.yml b/amplify.yml index 429d3f62..45e88eac 100644 --- a/amplify.yml +++ b/amplify.yml @@ -14,7 +14,6 @@ frontend: phases: preBuild: commands: - - nvm install 22 - nvm use 22 - npm ci build: diff --git a/app/store/[slug]/products/inventory/page.tsx b/app/store/[slug]/products/inventory/page.tsx index 893af607..269ff5b9 100644 --- a/app/store/[slug]/products/inventory/page.tsx +++ b/app/store/[slug]/products/inventory/page.tsx @@ -1,6 +1,6 @@ 'use client' -import { InventoryManager } from '@/app/store/components/product-management/InventoryManager' +import { InventoryManager } from '@/app/store/components/product-management/main-components/InventoryManager' import { Amplify } from 'aws-amplify' import { getStoreId } from '@/utils/store-utils' import { useParams, usePathname } from 'next/navigation'