-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from uploadcare/feat/dynamic-ssr-false-next
feat(next): added new import for nextjs with ssr disabled
- Loading branch information
Showing
8 changed files
with
401 additions
and
29 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/react-uploader/src/Uploader/Inline/NextFileUploaderInline.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import dynamic from "next/dynamic"; | ||
|
||
export const FileUploaderInline = dynamic( | ||
() => import("./FileUploaderInline").then((mod) => mod.FileUploaderInline), | ||
{ ssr: false }, | ||
); |
6 changes: 6 additions & 0 deletions
6
packages/react-uploader/src/Uploader/Minimal/NextFileUploaderMinimal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import dynamic from "next/dynamic"; | ||
|
||
export const FileUploaderMinimal = dynamic( | ||
() => import("./FileUploaderMinimal").then((mod) => mod.FileUploaderMinimal), | ||
{ ssr: false }, | ||
); |
6 changes: 6 additions & 0 deletions
6
packages/react-uploader/src/Uploader/Regular/NextFileUploaderRegular.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import dynamic from "next/dynamic"; | ||
|
||
export const FileUploaderRegular = dynamic( | ||
() => import("./FileUploaderRegular").then((mod) => mod.FileUploaderRegular), | ||
{ ssr: false }, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { FileUploaderMinimal } from "./Uploader/Minimal/NextFileUploaderMinimal"; | ||
export { FileUploaderRegular } from "./Uploader/Regular/NextFileUploaderRegular"; | ||
export { FileUploaderInline } from "./Uploader/Inline/NextFileUploaderInline"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters