Skip to content

Commit

Permalink
feat(remix-dev): show deprecation warning when serverBuildDirectory
Browse files Browse the repository at this point in the history
… config is used (remix-run#5704)
  • Loading branch information
MichaelDeBoey authored and fernandojbf committed Mar 21, 2023
1 parent fffdf29 commit c7643ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-beers-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": minor
---

show deprecation warning when `serverBuildDirectory` config is used
2 changes: 2 additions & 0 deletions packages/remix-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,8 @@ const resolveServerBuildPath = (

// retain deprecated behavior for now
if (appConfig.serverBuildDirectory) {
warnOnce(serverBuildDirectoryWarning, "serverBuildDirectory");

serverBuildPath = path.join(appConfig.serverBuildDirectory, "index.js");
}

Expand Down

0 comments on commit c7643ac

Please sign in to comment.