Skip to content
Open
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
1 change: 1 addition & 0 deletions shared/data/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@
"4.2"
],
"supported": [
"26",
"24",
"22",
"20"
Expand Down
2 changes: 1 addition & 1 deletion sites/platform/src/add-services/network-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ to be used by a `web` instance and a `queue` worker instance:
```yaml {configFile="apps"}
myapp:
# The type of the application to build.
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'

# Defines how much space is available to local mounts.
disk: 512
Expand Down
2 changes: 1 addition & 1 deletion sites/platform/src/create-apps/hooks/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ mounts:
name: 'nextjs'

# The type key specifies the language and version for your app.
type: 'nodejs:14'
type: 'nodejs:{{% latest "nodejs" %}}'

dependencies:
nodejs:
Expand Down
4 changes: 2 additions & 2 deletions sites/platform/src/create-apps/multi-app/project-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ api:
root: api-app

admin:
type: nodejs:16
type: 'nodejs:{{% latest "nodejs" %}}'

mounts:
'/.tmp_platformsh': 'shared:files/tmp_platformsh'
Expand Down Expand Up @@ -139,7 +139,7 @@ admin:
root: admin

gatsby:
type: 'nodejs:18'
type: 'nodejs:{{% latest "nodejs" %}}'

mounts:
'/.cache': { source: local, source_path: cache }
Expand Down
6 changes: 3 additions & 3 deletions sites/platform/src/create-apps/multi-app/routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ and a Mercure Rocks server app, defined as follows:

```yaml {configFile="apps"}
admin:
type: nodejs:16
type: 'nodejs:{{% latest "nodejs" %}}'
source:
root: admin
...
Expand All @@ -33,7 +33,7 @@ api:
root: api
...
gatsby:
type: nodejs:18
type: 'nodejs:{{% latest "nodejs" %}}'
source:
root: gatsby
...
Expand Down Expand Up @@ -111,7 +111,7 @@ api:
index:
- index.php
admin:
type: nodejs:16
type: 'nodejs:{{% latest "nodejs" %}}'
source:
root: admin
...
Expand Down
4 changes: 2 additions & 2 deletions sites/platform/src/languages/nodejs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ use the following configuration:
# The name of your app.
name: myapp
# Choose Node.js version 20 or above.
type: 'nodejs:20'
type: 'nodejs:{{% latest "nodejs" %}}'
# Override the default Node.js build flavor.
build:
flavor: none
Expand All @@ -308,7 +308,7 @@ You can even [use Bun as a runtime](https://devcenter.upsun.com/posts/bun-suppor
# The name of your app.
name: myapp
# Choose Node.js version 20 or above.
type: 'nodejs:20'
type: 'nodejs:{{% latest "nodejs" %}}'
# Override the default Node.js build flavor.
build:
flavor: none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ For example, to include another ``.platform/app1.yaml`` file in the main `{{% ve
```yaml {location=".platform/app1.yaml"}
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'
web:
commands:
start: "node index.js"
Expand Down
2 changes: 1 addition & 1 deletion sites/platform/src/learn/overview/yaml/yaml-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ app1:
root: app1

app2:
type: nodejs:20
type: 'nodejs:{{% latest "nodejs" %}}'
source:
root: app2
```
Expand Down
4 changes: 2 additions & 2 deletions sites/upsun/src/create-apps/multi-app/project-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ applications:
root: api-app

admin:
type: nodejs:16
type: 'nodejs:{{% latest "nodejs" %}}'

mounts:
'/.tmp_platformsh': 'shared:files/tmp_platformsh'
Expand Down Expand Up @@ -131,7 +131,7 @@ applications:
root: admin

gatsby:
type: 'nodejs:18'
type: 'nodejs:{{% latest "nodejs" %}}'

mounts:
'/.cache': { source: tmp, source_path: cache }
Expand Down
6 changes: 3 additions & 3 deletions sites/upsun/src/get-started/here/configure/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ applications:
myapp:
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'
web:
commands:
start: "npx next start -p $PORT"
Expand Down Expand Up @@ -77,7 +77,7 @@ applications:
myapp:
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'
web:
commands:
start: "node index.js"
Expand Down Expand Up @@ -111,7 +111,7 @@ applications:
myapp:
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'
relationships:
postgresql:
mounts:
Expand Down
4 changes: 2 additions & 2 deletions sites/upsun/src/get-started/stacks/express/add-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ applications:
myapp:
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'

[...]

Expand All @@ -48,7 +48,7 @@ applications:
myapp:
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'

[...]

Expand Down
8 changes: 4 additions & 4 deletions sites/upsun/src/get-started/stacks/strapi/add-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ applications:
myapp:
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'

[...]

Expand All @@ -70,7 +70,7 @@ applications:
myapp:
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'

[...]

Expand All @@ -93,7 +93,7 @@ applications:
myapp:
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'

[...]

Expand All @@ -114,7 +114,7 @@ applications:
myapp:
source:
root: "/"
type: "nodejs:20"
type: 'nodejs:{{% latest "nodejs" %}}'

[...]

Expand Down
4 changes: 2 additions & 2 deletions sites/upsun/src/languages/nodejs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ applications:
# The name of your app.
myapp:
# Choose Node.js version 20 or above.
type: 'nodejs:20'
type: 'nodejs:{{% latest "nodejs" %}}'
# Override the default Node.js build flavor.
build:
flavor: none
Expand All @@ -301,7 +301,7 @@ applications:
# The name of your app.
myapp:
# Choose Node.js version 20 or above.
type: 'nodejs:20'
type: 'nodejs:{{% latest "nodejs" %}}'
# Override the default Node.js build flavor.
build:
flavor: none
Expand Down
2 changes: 1 addition & 1 deletion sites/upsun/src/learn/overview/yaml/platform-yaml-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ For [multiple application](/create-apps/multi-app/_index.md) project, you can al
```yaml {location=".upsun/apps/my-app.yaml"}
source:
root: "/"
type: "nodejs:18"
type: 'nodejs:{{% latest "nodejs" %}}'
web:
commands:
start: "node index.js"
Expand Down
6 changes: 3 additions & 3 deletions sites/upsun/src/learn/overview/yaml/yaml-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Example:
```yaml {location=".upsun/app.yaml"}
applications:
myapp:
type: nodejs:16
type: nodejs:22
source:
root: folder1
...
Expand All @@ -74,7 +74,7 @@ applications:
```yaml {location=".upsun/app-bis.yaml"}
applications:
myapp:
type: nodejs:20
type: nodejs:26
build:
flavor: none
...
Expand All @@ -85,7 +85,7 @@ the blended configuration will be the following:
```yaml {location="YAML config result"}
applications:
myapp:
type: nodejs:20
type: nodejs:26
build:
flavor: none
...
Expand Down
Loading