Skip to content

Conversation

@JamesIves
Copy link
Contributor

@JamesIves JamesIves commented Oct 29, 2024

Fixes #4812

Description

Bumps peer dependencies so labs/nextjs works with Next.js 15. Also adds two sample apps for Next.js 15 (one for app router, another for pages) by copying and pasting the v14 samples and running the Next.js updater tool on them.

I took a pass at validating the SSR functionality and everything seemed fine, but would appreciate a sanity check.

Happy to make any changes based on feedback!

@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2024

🦋 Changeset detected

Latest commit: d24537c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lit-labs/nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JamesIves JamesIves changed the title [labs/nextjs] Bump Peer Dependencies for Next 15 [labs/nextjs] Bump Peer Dependencies for Next 15 Support Oct 29, 2024
@sorvell sorvell requested a review from augustjk November 19, 2024 18:45
@justinfagnani justinfagnani self-requested a review November 19, 2024 21:43
Copy link
Collaborator

@justinfagnani justinfagnani left a comment

Choose a reason for hiding this comment

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

Thanks @JamesIves!

LGTM - wdyt @augustjk ?

Copy link
Member

@augustjk augustjk left a comment

Choose a reason for hiding this comment

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

Thanks! This examples seem to work fine with SSR in the new version. Just a couple suggestions to remove the now-invalid next config option.

@JamesIves
Copy link
Contributor Author

@augustjk @justinfagnani Should be all good to go now

@augustjk augustjk merged commit d3ce79a into lit:main Nov 22, 2024
8 checks passed
augustjk pushed a commit to maxpatiiuk/lit that referenced this pull request Nov 22, 2024
@JamesIves JamesIves deleted the support-next-15 branch November 26, 2024 14:24
@lit-robot lit-robot mentioned this pull request Jan 2, 2025
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.

[labs/nextjs] Add support for Next.js 15

3 participants