@vercel/remix
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -127,2 +127,9 @@ "use strict"; | ||
} | ||
// Also check for whether were in a monorepo. | ||
// If we are, prepend the app root directory from config onto the build path. | ||
// e.g. `/apps/my-remix-app/api/index.js` | ||
const isMonorepo = repoRootPath && repoRootPath !== workPath; | ||
if (isMonorepo && config.projectSettings?.rootDirectory) { | ||
serverBuildPath = (0, path_1.join)(config.projectSettings.rootDirectory, serverBuildPath); | ||
} | ||
} | ||
@@ -136,3 +143,3 @@ catch (err) { | ||
(0, build_utils_1.glob)('**', (0, path_1.join)(entrypointFsDirname, 'public')), | ||
createRenderFunction(entrypointFsDirname, serverBuildPath, needsHandler, nodeVersion), | ||
createRenderFunction(entrypointFsDirname, repoRootPath, serverBuildPath, needsHandler, nodeVersion), | ||
]); | ||
@@ -165,3 +172,3 @@ return { | ||
} | ||
async function createRenderFunction(rootDir, serverBuildPath, needsHandler, nodeVersion) { | ||
async function createRenderFunction(entrypointDir, rootDir, serverBuildPath, needsHandler, nodeVersion) { | ||
const files = {}; | ||
@@ -180,2 +187,3 @@ const handler = needsHandler | ||
base: rootDir, | ||
processCwd: entrypointDir, | ||
}); | ||
@@ -182,0 +190,0 @@ for (const warning of trace.warnings) { |
{ | ||
"name": "@vercel/remix", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "0a2af4fb94d71a7a23ffc72fb68748be1177f345" | ||
"gitHead": "ec9b55dc8196b650987a505ed24566818566f3cf" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31023
270