@platformatic/next 3.33.0-alpha.2 → 3.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/capability.js CHANGED
@@ -70,12 +70,8 @@ export class NextCapability extends BaseCapability {
70
70
  this.config.next.useExperimentalAdapter = false
71
71
  }
72
72
 
73
- if (this.isProduction) {
74
- return
75
- }
76
-
77
73
  /* c8 ignore next 3 */
78
- if (!supportedVersions.some(v => satisfies(nextPackage.version, v))) {
74
+ if (!this.isProduction && !supportedVersions.some(v => satisfies(nextPackage.version, v))) {
79
75
  throw new basicErrors.UnsupportedVersion('next', nextPackage.version, supportedVersions)
80
76
  }
81
77
  }
@@ -141,8 +137,11 @@ export class NextCapability extends BaseCapability {
141
137
 
142
138
  let command = config.application.commands.build
143
139
 
144
- if (!command) {
140
+ if (!command || !config.next?.standalone) {
145
141
  await this.init(true)
142
+ }
143
+
144
+ if (!command) {
146
145
  command = ['node', resolvePath(this.#next, './dist/bin/next'), 'build', this.root]
147
146
  }
148
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/next",
3
- "version": "3.33.0-alpha.2",
3
+ "version": "3.33.0",
4
4
  "description": "Platformatic Next.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -23,8 +23,8 @@
23
23
  "iovalkey": "^0.3.0",
24
24
  "msgpackr": "^1.11.2",
25
25
  "semver": "^7.6.3",
26
- "@platformatic/basic": "3.33.0-alpha.2",
27
- "@platformatic/foundation": "3.33.0-alpha.2"
26
+ "@platformatic/foundation": "3.33.0",
27
+ "@platformatic/basic": "3.33.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@fastify/reply-from": "^12.0.0",
@@ -40,8 +40,8 @@
40
40
  "next": "^16.0.0",
41
41
  "typescript": "^5.5.4",
42
42
  "ws": "^8.18.0",
43
- "@platformatic/gateway": "3.33.0-alpha.2",
44
- "@platformatic/service": "3.33.0-alpha.2"
43
+ "@platformatic/gateway": "3.33.0",
44
+ "@platformatic/service": "3.33.0"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/next/3.33.0-alpha.2.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/3.33.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Next.js Config",
5
5
  "type": "object",