refactor(next-api): remove unused distDir (#57789)

### What

recent define_env refactoring removed usage of separate distDir from project config.
This commit is contained in:
OJ Kwon 2023-11-08 00:12:34 -08:00 committed by GitHub
parent 9d3b94b449
commit f7b979c9cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ use turbo_tasks::{
graph::{AdjacencyMap, GraphTraversal},
trace::TraceRawVcs,
Completion, Completions, IntoTraitRef, State, TaskInput, TraitRef, TransientInstance,
TryFlatJoinIterExt, Value, ValueToString, Vc,
TryFlatJoinIterExt, Value, Vc,
};
use turbopack_binding::{
turbo::{
@ -402,15 +402,6 @@ impl Project {
self.project_fs().root()
}
/// Returns a path to dist_dir resolved from project root path as string.
/// Currently this is only for embedding process.env.__NEXT_DIST_DIR.
/// [Note] in webpack-config, it is being injected when
/// dev && (isClient || isEdgeServer)
#[turbo_tasks::function]
async fn dist_root_string(self: Vc<Self>) -> Result<Vc<String>> {
Ok(self.node_root().to_string())
}
#[turbo_tasks::function]
pub async fn client_relative_path(self: Vc<Self>) -> Result<Vc<FileSystemPath>> {
let next_config = self.next_config().await?;