Skip to content

Commit 1036d96

Browse files
Update nodejs-nextjs stack
Signed-off-by: Roman Nikitenko <[email protected]> rh-pre-commit.version: 2.2.0 rh-pre-commit.check-secrets: ENABLED
1 parent 864c27f commit 1036d96

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
schemaVersion: 2.2.2
2+
metadata:
3+
name: nodejs-nextjs
4+
displayName: Next.js
5+
description: "Next.js gives you the best developer experience with all the features you need for production:
6+
hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching, and more.
7+
No config needed."
8+
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/next-js.svg
9+
tags:
10+
- Node.js
11+
- Next.js
12+
projectType: Next.js
13+
language: TypeScript
14+
provider: Red Hat
15+
version: 1.2.1
16+
starterProjects:
17+
- name: nodejs-nextjs-starter
18+
git:
19+
checkoutFrom:
20+
revision: main
21+
remotes:
22+
origin: https://github.com/devfile-samples/devfile-stack-nodejs-nextjs.git
23+
components:
24+
- container:
25+
endpoints:
26+
- name: https-nextjs
27+
protocol: https
28+
targetPort: 3000
29+
image: registry.access.redhat.com/ubi8/nodejs-18:1-94
30+
command: ['tail', '-f', '/dev/null']
31+
memoryLimit: 1024Mi
32+
name: runtime
33+
commands:
34+
- exec:
35+
commandLine: npm install
36+
component: runtime
37+
group:
38+
isDefault: true
39+
kind: build
40+
workingDir: ${PROJECT_SOURCE}
41+
id: install
42+
- exec:
43+
commandLine: npm run dev
44+
component: runtime
45+
group:
46+
isDefault: true
47+
kind: run
48+
hotReloadCapable: true
49+
workingDir: ${PROJECT_SOURCE}
50+
id: run

stacks/nodejs-nextjs/stack.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main
88
versions:
99
- version: 1.0.3
1010
- version: 1.1.0
11-
default: true # should have one and only one default version
1211
- version: 1.2.0
12+
- version: 1.2.1
13+
default: true # should have one and only one default version

0 commit comments

Comments
 (0)