Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reference error while server side rendering #3

Merged
merged 1 commit into from Jan 29, 2023
Merged

fix: reference error while server side rendering #3

merged 1 commit into from Jan 29, 2023

Conversation

maximousblk
Copy link
Contributor

When using SSR in NextJS, window object is not defined. this causes a build error in production.

Tested with NextJS 13.1.6

This change preserves current behavior.

Copy link
Owner

@tol-is tol-is left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @maximousblk!

@tol-is tol-is merged commit 08efa03 into tol-is:main Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants