Skip to content

Commit

Permalink
Merge pull request #1681 from SUI-Components/fix/sui-ssr-dev
Browse files Browse the repository at this point in the history
fix(packages/sui-ssr): use custom env variable instead of NODE_ENV to…
  • Loading branch information
andresz1 authored Dec 14, 2023
2 parents 3da611f + ff41967 commit 25c1efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/sui-ssr/bin/sui-ssr-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

const {WEBPACK_PORT = 8080} = process.env
process.env.CDN = `http://localhost:${WEBPACK_PORT}/`
process.env.DEV_SERVER = 'true'

const program = require('commander')
const {exec} = require('child_process')
Expand Down
2 changes: 1 addition & 1 deletion packages/sui-ssr/server/utils/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default ({path, fs, config: ssrConf = {}, assetsManifest}) => {
}

const publicFolder = req => {
if (process.env.NODE_ENV !== 'production') {
if (process.env.DEV_SERVER === 'true') {
return DEFAULT_DEV_PUBLIC_FOLDER
}

Expand Down

0 comments on commit 25c1efb

Please sign in to comment.