From 6b17f37fc464759ed649d7d9692b8528e2f6faca Mon Sep 17 00:00:00 2001 From: Roman Nikitenko Date: Wed, 27 Mar 2024 15:23:11 +0200 Subject: [PATCH] Update nodejs-nextjs stack Signed-off-by: Roman Nikitenko rh-pre-commit.version: 2.2.0 rh-pre-commit.check-secrets: ENABLED --- stacks/nodejs-nextjs/1.2.1/devfile.yaml | 50 +++++++++++++++++++++++++ stacks/nodejs-nextjs/stack.yaml | 3 +- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 stacks/nodejs-nextjs/1.2.1/devfile.yaml diff --git a/stacks/nodejs-nextjs/1.2.1/devfile.yaml b/stacks/nodejs-nextjs/1.2.1/devfile.yaml new file mode 100644 index 000000000..f5cda04e1 --- /dev/null +++ b/stacks/nodejs-nextjs/1.2.1/devfile.yaml @@ -0,0 +1,50 @@ +schemaVersion: 2.2.2 +metadata: + name: nodejs-nextjs + displayName: Next.js + description: "Next.js gives you the best developer experience with all the features you need for production: + hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching, and more. + No config needed." + icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/next-js.svg + tags: + - Node.js + - Next.js + projectType: Next.js + language: TypeScript + provider: Red Hat + version: 1.2.1 +starterProjects: + - name: nodejs-nextjs-starter + git: + checkoutFrom: + revision: main + remotes: + origin: https://github.com/devfile-samples/devfile-stack-nodejs-nextjs.git +components: + - container: + endpoints: + - name: https-nextjs + protocol: https + targetPort: 3000 + image: registry.access.redhat.com/ubi8/nodejs-18:1-94 + command: ['tail', '-f', '/dev/null'] + memoryLimit: 1024Mi + name: runtime +commands: + - exec: + commandLine: npm install + component: runtime + group: + isDefault: true + kind: build + workingDir: ${PROJECT_SOURCE} + id: install + - exec: + commandLine: npm run dev + component: runtime + group: + isDefault: true + kind: run + hotReloadCapable: true + workingDir: ${PROJECT_SOURCE} + id: run diff --git a/stacks/nodejs-nextjs/stack.yaml b/stacks/nodejs-nextjs/stack.yaml index d7268f112..3eeb00d7b 100644 --- a/stacks/nodejs-nextjs/stack.yaml +++ b/stacks/nodejs-nextjs/stack.yaml @@ -8,5 +8,6 @@ icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main versions: - version: 1.0.3 - version: 1.1.0 - default: true # should have one and only one default version - version: 1.2.0 + - version: 1.2.1 + default: true # should have one and only one default version