Skip to content

Commit

Permalink
feat!(remix-dev): remove browserBuildDirectory config
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Mar 15, 2023
1 parent a890d62 commit 73e61fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-readers-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": major
---

remove `browserBuildDirectory` config
12 changes: 1 addition & 11 deletions packages/remix-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,6 @@ export interface AppConfig {
*/
assetsBuildDirectory?: string;

/**
* The path to the browser build, relative to remix.config.js. Defaults to
* "public/build".
*
* @deprecated Use `{@link AppConfig.assetsBuildDirectory}` instead
*/
browserBuildDirectory?: string;

/**
* The URL prefix of the browser build with a trailing slash. Defaults to
* `"/build/"`. This is the path the browser will use to find assets.
Expand Down Expand Up @@ -496,9 +488,7 @@ export async function readConfig(
}

let assetsBuildDirectory =
appConfig.assetsBuildDirectory ||
appConfig.browserBuildDirectory ||
path.join("public", "build");
appConfig.assetsBuildDirectory || path.join("public", "build");

let absoluteAssetsBuildDirectory = path.resolve(
rootDirectory,
Expand Down

0 comments on commit 73e61fa

Please sign in to comment.