Skip to content

Commit

Permalink
Merge pull request #26 from abiriadev/fix-jsx-runtime-issue
Browse files Browse the repository at this point in the history
fix: force serve command to render JSX in production mode
  • Loading branch information
abiriadev authored Jun 6, 2024
2 parents 2ff262c + daca655 commit 5d51d21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-tomatoes-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'seia.js': patch
---

Fix JSX runtime issue on yarn berry
5 changes: 5 additions & 0 deletions packages/seia/src/commands/start.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import process from 'node:process'

import { Args, Flags } from '@oclif/core'

import { SeiaCommand } from '../command.js'
Expand Down Expand Up @@ -29,6 +31,9 @@ export default class Start extends SeiaCommand {
flags: { port },
} = await this.parse(Start)

// HACK: Force server to run in production mode
process.env.NODE_ENV = 'production'

await serve(
extendResolvedSeiaConfig(this.resolvedConfig, {
serve: {
Expand Down

0 comments on commit 5d51d21

Please sign in to comment.