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

docs: added caution section for nextjs and warning #790

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public NextFramework() {
public QuinoaConfig override(QuinoaConfig delegate, Optional<JsonObject> packageJson,
Optional<String> detectedDevScript,
boolean isCustomized) {
LOG.warn("Next.js version 13 and above are not fully supported yet. Please make sure to use version 12 or below.");

if (delegate.packageManagerCommand().build().orElse("???").equals("run build") && packageJson.isPresent()) {
JsonObject scripts = packageJson.get().getJsonObject("scripts");
if (scripts != null) {
Expand All @@ -40,6 +42,7 @@ public QuinoaConfig override(QuinoaConfig delegate, Optional<JsonObject> package
}
}
}

return new QuinoaConfigDelegate(super.override(delegate, packageJson, detectedDevScript, isCustomized)) {

@Override
Expand Down
3 changes: 3 additions & 0 deletions docs/modules/ROOT/pages/web-frameworks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ a|

|===

CAUTION: Next.js versions 13 and above are not fully supported due to several issues, including the lack of support for the `export` output. For example, dynamic routes are not supported for the App Router.
https://github.com/vercel/next.js/discussions/55393[See Next.js issue 55393 for more information.]

== Required Configuration

[#angular-test-config]
Expand Down