Skip to content

Commit

Permalink
updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
onhate committed Oct 23, 2023
1 parent aae4c9d commit 7888320
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ export interface NextjsProps extends NextjsBaseProps {
/**
* Optional value to prefix the Next.js site under a /prefix path on CloudFront.
* Usually used when you deploy multiple Next.js sites on same domain using /sub-path
*
* Note, you'll need to set [basePath](https://nextjs.org/docs/app/api-reference/next-config-js/basePath)
* in your `next.config.ts` to this value and ensure any files in `public`
* folder have correct prefix.
* @example "/my-base-path"
*/
readonly basePath?: string;
Expand Down
5 changes: 5 additions & 0 deletions src/NextjsDistribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ export interface NextjsDistributionProps extends NextjsBaseProps {
/**
* Optional value to prefix the Next.js site under a /prefix path on CloudFront.
* Usually used when you deploy multiple Next.js sites on same domain using /sub-path
*
* Note, you'll need to set [basePath](https://nextjs.org/docs/app/api-reference/next-config-js/basePath)
* in your `next.config.ts` to this value and ensure any files in `public`
* folder have correct prefix.
* @example "/my-base-path"
*/
readonly basePath?: string;

Expand Down
5 changes: 5 additions & 0 deletions src/NextjsStaticAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ export interface NextjsStaticAssetsProps {
/**
* Optional value to prefix the Next.js site under a /prefix path on CloudFront.
* Usually used when you deploy multiple Next.js sites on same domain using /sub-path
*
* Note, you'll need to set [basePath](https://nextjs.org/docs/app/api-reference/next-config-js/basePath)
* in your `next.config.ts` to this value and ensure any files in `public`
* folder have correct prefix.
* @example "/my-base-path"
*/
readonly basePath?: string;
}
Expand Down

0 comments on commit 7888320

Please sign in to comment.