diff --git a/examples/algolia/next.config.js b/examples/algolia/next.config.js
index 0ccb3ba7..be97d613 100644
--- a/examples/algolia/next.config.js
+++ b/examples/algolia/next.config.js
@@ -4,8 +4,17 @@
* @type {import('next').NextConfig}
**/
const nextConfig = {
+ experimental: {
+ serverActions: true,
+ },
images: {
- domains: ["files-eu.epusercontent.com", "files-na.epusercontent.com"],
+ formats: ["image/avif", "image/webp"],
+ remotePatterns: [
+ {
+ protocol: "https",
+ hostname: "**.epusercontent.com",
+ },
+ ],
},
i18n: {
locales: ["en"],
@@ -16,11 +25,6 @@ const nextConfig = {
...config.resolve.fallback,
fs: false,
};
- config.module.rules.push({
- test: /\.svg$/i,
- issuer: /\.[jt]sx?$/,
- use: ["@svgr/webpack"],
- });
return config;
},
diff --git a/examples/algolia/package.json b/examples/algolia/package.json
index 0164ac44..f464c58f 100644
--- a/examples/algolia/package.json
+++ b/examples/algolia/package.json
@@ -22,24 +22,25 @@
"dependencies": {
"@algolia/react-instantsearch-widget-color-refinement-list": "^1.4.7",
"@elasticpath/react-shopper-hooks": "0.5.1",
+ "@elasticpath/shopper-common": "0.1.1",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@moltin/sdk": "^25.0.2",
"algoliasearch": "^4.14.2",
"clsx": "^1.2.1",
- "cookies-next": "^2.1.1",
- "dequal": "^2.0.3",
+ "cookies-next": "^4.0.0",
"focus-visible": "^5.2.0",
"formik": "^2.2.9",
- "next": "^12.2.5",
+ "next": "^13.5.6",
"pure-react-carousel": "^1.29.0",
"rc-slider": "^10.3.0",
"react": "^18.2.0",
"react-device-detect": "^2.2.2",
"react-dom": "^18.2.0",
- "react-instantsearch-hooks-server": "6.38.1",
- "react-instantsearch-hooks-web": "6.38.1",
+ "react-instantsearch": "^7.2.0",
+ "react-instantsearch-hooks": "^6.47.3",
"react-toastify": "^9.1.3",
+ "server-only": "^0.0.1",
"zod": "^3.22.4",
"zod-formik-adapter": "^1.2.0"
},
@@ -57,6 +58,7 @@
"@vitest/coverage-istanbul": "^0.34.5",
"autoprefixer": "^10.4.14",
"babel-loader": "^8.2.5",
+ "encoding": "^0.1.13",
"eslint": "^8.49.0",
"eslint-config-next": "^13.5.2",
"eslint-config-prettier": "^9.0.0",
diff --git a/examples/algolia/public/150-placeholder.png b/examples/algolia/public/150-placeholder.png
deleted file mode 100644
index 61cd0d97..00000000
Binary files a/examples/algolia/public/150-placeholder.png and /dev/null differ
diff --git a/examples/algolia/public/icons/empty.svg b/examples/algolia/public/icons/empty.svg
deleted file mode 100644
index 48a29670..00000000
--- a/examples/algolia/public/icons/empty.svg
+++ /dev/null
@@ -1,113 +0,0 @@
-
diff --git a/examples/algolia/public/icons/ep-icon.svg b/examples/algolia/public/icons/ep-icon.svg
deleted file mode 100644
index 6250de53..00000000
--- a/examples/algolia/public/icons/ep-icon.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
\ No newline at end of file
diff --git a/examples/algolia/public/icons/ep-logo.svg b/examples/algolia/public/icons/ep-logo.svg
deleted file mode 100644
index c2498f42..00000000
--- a/examples/algolia/public/icons/ep-logo.svg
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/examples/algolia/public/icons/github.svg b/examples/algolia/public/icons/github.svg
deleted file mode 100644
index 21a72e8c..00000000
--- a/examples/algolia/public/icons/github.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/examples/algolia/src/app/about/page.tsx b/examples/algolia/src/app/about/page.tsx
new file mode 100644
index 00000000..edda2df8
--- /dev/null
+++ b/examples/algolia/src/app/about/page.tsx
@@ -0,0 +1,5 @@
+import Blurb from "../../components/shared/blurb";
+
+export default function About() {
+ return
Your cart is empty
+{product.attributes.name} - -
{product.meta.display_price?.without_tax.formatted} - -