Skip to content

Commit

Permalink
fix: set default nodejs version for redwoodjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstork committed Sep 20, 2024
1 parent 413b127 commit 6bad3ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/build-info/src/frameworks/redwood.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,6 @@ test('should detect redwood', async ({ fs }) => {
expect(detected?.[0].build.command).toBe('rw deploy netlify')
expect(detected?.[0].build.directory).toBe('web/dist')
expect(detected?.[0].dev?.command).toBe('yarn rw dev')
expect(detected?.[0].env.NODE_VERSION).toBe('20')
expect(detected?.[0].env.AWS_LAMBDA_JS_RUNTIME).toBe('nodejs20.x')
})
5 changes: 5 additions & 0 deletions packages/build-info/src/frameworks/redwoodjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ export class RedwoodJS extends BaseFramework implements Framework {
directory: 'web/dist',
}

env = {
AWS_LAMBDA_JS_RUNTIME: 'nodejs20.x',
NODE_VERSION: '20',
}

logo = {
default: '/logos/redwoodjs/default.svg',
light: '/logos/redwoodjs/default.svg',
Expand Down

0 comments on commit 6bad3ac

Please sign in to comment.