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 NextJS example #3540

Merged
merged 10 commits into from
Dec 4, 2023
Merged

Fix NextJS example #3540

merged 10 commits into from
Dec 4, 2023

Conversation

ndricimrr
Copy link
Contributor

Description

Changes proposed in this pull request:

Using LuigiClient in production mode in NextJS is not straightforward due to its server-side rendering.
Even if client side code is included in client side react hooks (useEffect), apparently NextJS's internal webpack config mess with the LuigiClient bundle, resulting in LuigiClient bundle errors.

Current solution avoids webpack and includes the LuigiClient bundle directly into the html of the separate NextJS microfronted.

Related issue(s)

Fixes #3500

@ndricimrr ndricimrr added the internal Stuff like NFRs, CI pipeline label Nov 22, 2023
@ndricimrr ndricimrr marked this pull request as ready for review November 22, 2023 15:41
@ndricimrr ndricimrr added the documentation documentation tasks label Nov 22, 2023
core/examples/luigi-example-next/README.md Outdated Show resolved Hide resolved
core/examples/luigi-example-next/README.md Outdated Show resolved Hide resolved
core/examples/luigi-example-next/README.md Outdated Show resolved Hide resolved
@JohannesDoberer JohannesDoberer self-assigned this Nov 30, 2023
Copy link
Contributor

@JohannesDoberer JohannesDoberer left a comment

Choose a reason for hiding this comment

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

Works as expected 👍

@ndricimrr ndricimrr merged commit 8a51bb0 into main Dec 4, 2023
12 checks passed
@ndricimrr ndricimrr deleted the 3500-nextjs-fix branch December 4, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation documentation tasks internal Stuff like NFRs, CI pipeline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nextjs example does not work
3 participants