diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..68c6ea5a --- /dev/null +++ b/.npmrc @@ -0,0 +1,4 @@ +# vercel-commerce uses a different react version +# and the build work break when symlinks are used +# See https://stackoverflow.com/a/65638449 +node-linker=hoisted diff --git a/examples/vercel-commerce/.gitignore b/examples/vercel-commerce/.gitignore index 0298027e..a0c54461 100644 --- a/examples/vercel-commerce/.gitignore +++ b/examples/vercel-commerce/.gitignore @@ -36,3 +36,8 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +# cf +.dev.vars +.wrangler +.worker-next diff --git a/examples/vercel-commerce/README.md b/examples/vercel-commerce/README.md index 73299027..dd2c70b0 100644 --- a/examples/vercel-commerce/README.md +++ b/examples/vercel-commerce/README.md @@ -33,6 +33,7 @@ Vercel is happy to partner and work with any commerce provider to help them get Integrations enable upgraded or additional functionality for Next.js Commerce - [Orama](https://github.com/oramasearch/nextjs-commerce) ([Demo](https://vercel-commerce.oramasearch.com/)) + - Upgrades search to include typeahead with dynamic re-rendering, vector-based similarity search, and JS-based configuration. - Search runs entirely in the browser for smaller catalogs or on a CDN for larger. diff --git a/examples/vercel-commerce/app/layout.tsx b/examples/vercel-commerce/app/layout.tsx index 3b09ab7e..1c92b328 100644 --- a/examples/vercel-commerce/app/layout.tsx +++ b/examples/vercel-commerce/app/layout.tsx @@ -1,12 +1,10 @@ import { CartProvider } from 'components/cart/cart-context'; import { Navbar } from 'components/layout/navbar'; -import { WelcomeToast } from 'components/welcome-toast'; import { GeistSans } from 'geist/font/sans'; import { getCart } from 'lib/shopify'; import { ensureStartsWith } from 'lib/utils'; import { cookies } from 'next/headers'; import { ReactNode } from 'react'; -import { Toaster } from 'sonner'; import './globals.css'; const { TWITTER_CREATOR, TWITTER_SITE, SITE_NAME } = process.env; @@ -46,11 +44,7 @@ export default async function RootLayout({ children }: { children: ReactNode })