diff --git a/CNAME b/CNAME new file mode 100644 index 000000000..b02e31c3a --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +reselect.js.org diff --git a/netlify.toml b/netlify.toml index 44b3b248e..c36c93772 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] base = "website" - publish = "website/build" + publish = "build" command = "yarn build" ignore = "git diff --quiet HEAD^ HEAD -- ./docs/ ." diff --git a/package.json b/package.json index d28e43640..27869c490 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "lodash.memoize": "^4.1.2", "memoize-one": "^6.0.0", "micro-memoize": "^4.0.9", + "netlify-plugin-cache": "^1.0.3", "prettier": "^2.7.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/website/package.json b/website/package.json index a332d5826..a91ad53a2 100644 --- a/website/package.json +++ b/website/package.json @@ -30,6 +30,7 @@ "@docusaurus/module-type-aliases": "3.0.0", "@docusaurus/tsconfig": "3.0.0", "@docusaurus/types": "3.0.0", + "netlify-plugin-cache": "^1.0.3", "prettier": "^3.1.0", "rimraf": "^5.0.5", "ts-node": "^10.9.1", diff --git a/website/src/components/InternalLinks.tsx b/website/src/components/InternalLinks.tsx index d9583973a..2743d94bc 100644 --- a/website/src/components/InternalLinks.tsx +++ b/website/src/components/InternalLinks.tsx @@ -55,7 +55,7 @@ export const InternalLinks = { ), OutputSelectorFields: ({ text = 'Output Selector Fields' }) => ( {text} @@ -72,20 +72,17 @@ export const InternalLinks = { ), LruMemoize: () => ( - + lruMemoize ), WeakMapMemoize: () => ( - + weakMapMemoize ), UnstableAutotrackMemoize: () => ( - + unstable_autotrackMemoize ), diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 485d49b9c..89d704890 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -33,7 +33,7 @@ const Home: FC = () => { const { siteConfig } = useDocusaurusContext() return ( diff --git a/website/yarn.lock b/website/yarn.lock index 0b179fefc..2e9c195bf 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -8569,6 +8569,13 @@ __metadata: languageName: node linkType: hard +"netlify-plugin-cache@npm:^1.0.3": + version: 1.0.3 + resolution: "netlify-plugin-cache@npm:1.0.3" + checksum: 967b9b7855711843ec1412a58be703850e46582e1df3e0edf086b5bcc3ac9b358a307eefed4520eafaeeec9011ecd4bf9b2919261454ece4699754653645891e + languageName: node + linkType: hard + "no-case@npm:^3.0.4": version: 3.0.4 resolution: "no-case@npm:3.0.4" @@ -11950,6 +11957,7 @@ __metadata: "@docusaurus/types": 3.0.0 "@mdx-js/react": ^3.0.0 clsx: ^1.2.1 + netlify-plugin-cache: ^1.0.3 prettier: ^3.1.0 prism-react-renderer: ^2.1.0 react: ^18.2.0 diff --git a/yarn.lock b/yarn.lock index 720ad626b..9098418a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3553,6 +3553,13 @@ __metadata: languageName: node linkType: hard +"netlify-plugin-cache@npm:^1.0.3": + version: 1.0.3 + resolution: "netlify-plugin-cache@npm:1.0.3" + checksum: 967b9b7855711843ec1412a58be703850e46582e1df3e0edf086b5bcc3ac9b358a307eefed4520eafaeeec9011ecd4bf9b2919261454ece4699754653645891e + languageName: node + linkType: hard + "node-gyp@npm:latest": version: 10.0.1 resolution: "node-gyp@npm:10.0.1" @@ -4190,6 +4197,7 @@ __metadata: lodash.memoize: ^4.1.2 memoize-one: ^6.0.0 micro-memoize: ^4.0.9 + netlify-plugin-cache: ^1.0.3 prettier: ^2.7.1 react: ^18.2.0 react-dom: ^18.2.0