Skip to content

Commit

Permalink
change refs in headless-ssr samples to reflect new ssr subpath
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrajamanickam-coveo committed Sep 20, 2023
1 parent 1bb71c4 commit 2d8b514
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/headless-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"license": "Apache-2.0",
"type": "module",
"exports": {
"ssr": "./dist/ssr/index.js"
"./ssr": "./dist/ssr/index.js"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/samples/headless-ssr/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## About

- This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
- It demonstrates usage of the framework agnostic `@coveo/headless/ssr` and `@coveo/headless-react` utils for Server-Side Rendering with headless.
- It demonstrates usage of the framework agnostic `@coveo/headless/ssr` and `@coveo/headless-react/ssr` utils for Server-Side Rendering with headless.
- Although NextJS is used to demonstrate SSR usage for convenience, the utils are not specific to NextJS.

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion packages/samples/headless-ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coveo/headless-ssr-samples",
"description": "Examples using framework agnostic @coveo/headless/ssr utils and @coveo/headless-react",
"description": "Examples using framework agnostic @coveo/headless/ssr utils and @coveo/headless-react/ssr",
"version": "0.0.0",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/samples/headless-ssr/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const metadata = {
title: 'Headless SSR examples',
description:
'Examples of using framework agnostic @coveo/headless/ssr utils and @coveo/headless-react',
'Examples of using framework agnostic @coveo/headless/ssr utils and @coveo/headless-react/ssr',
};

export default function RootLayout({children}: {children: React.ReactNode}) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {defineSearchEngine} from '@coveo/headless-react';
import {defineSearchEngine} from '@coveo/headless-react/ssr';
import {InferStaticState, InferHydratedState} from '@coveo/headless/ssr';
import {config} from '../../common/search-engine-config';

Expand Down

0 comments on commit 2d8b514

Please sign in to comment.