Skip to content

Commit

Permalink
fix(packages/sui-ssr): use custom env variable instead of NODE_ENV to…
Browse files Browse the repository at this point in the history
… use tmp build folder
  • Loading branch information
Andrés Alvarez authored and Andrés Alvarez committed Dec 13, 2023
1 parent f2f6fd9 commit ff41967
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 ff41967

Please sign in to comment.