Skip to content

Commit

Permalink
docs: added caution section for nextjs and warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zZHorizonZz committed Oct 16, 2024
1 parent 6ee56bf commit efda750
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit efda750

Please sign in to comment.