@vercel/remix
Advanced tools
Comparing version 2.7.2-preset.1 to 2.7.2-preset.2
@@ -34,3 +34,2 @@ /** | ||
let entryServerPath; | ||
let addedEntryServer = false; | ||
let routeConfigs = new Map(); | ||
@@ -65,10 +64,4 @@ let bundleConfigs = new Map(); | ||
let appDirectory = remixUserConfig.appDirectory ?? "app"; | ||
let entryServerFile = fs.readdirSync(appDirectory).find(f => path.basename(f, path.extname(f)) === 'entry.server'); | ||
if (entryServerFile) { | ||
entryServerPath = path.join(appDirectory, entryServerFile); | ||
} else { | ||
entryServerPath = path.join(appDirectory, "entry.server.jsx"); | ||
addedEntryServer = true; | ||
fs.cpSync(path.join(__dirname, "defaults/entry.server.jsx"), entryServerPath); | ||
} | ||
entryServerPath = path.join(appDirectory, "entry.server.jsx"); | ||
fs.cpSync(path.join(__dirname, "defaults/entry.server.jsx"), entryServerPath); | ||
} | ||
@@ -87,3 +80,3 @@ config = flattenAndSort(config); | ||
}) => { | ||
if (addedEntryServer && entryServerPath) { | ||
if (entryServerPath) { | ||
fs.rmSync(entryServerPath); | ||
@@ -90,0 +83,0 @@ } |
{ | ||
"name": "@vercel/remix", | ||
"version": "2.7.2-preset.1", | ||
"version": "2.7.2-preset.2", | ||
"description": "Isomorphic runtime + adapter for Remix on Vercel", | ||
@@ -5,0 +5,0 @@ "repository": { |
13
vite.js
@@ -34,3 +34,2 @@ /** | ||
let entryServerPath; | ||
let addedEntryServer = false; | ||
let routeConfigs = new Map(); | ||
@@ -65,10 +64,4 @@ let bundleConfigs = new Map(); | ||
let appDirectory = remixUserConfig.appDirectory ?? "app"; | ||
let entryServerFile = fs.readdirSync(appDirectory).find(f => path.basename(f, path.extname(f)) === 'entry.server'); | ||
if (entryServerFile) { | ||
entryServerPath = path.join(appDirectory, entryServerFile); | ||
} else { | ||
entryServerPath = path.join(appDirectory, "entry.server.jsx"); | ||
addedEntryServer = true; | ||
fs.cpSync(path.join(__dirname, "defaults/entry.server.jsx"), entryServerPath); | ||
} | ||
entryServerPath = path.join(appDirectory, "entry.server.jsx"); | ||
fs.cpSync(path.join(__dirname, "defaults/entry.server.jsx"), entryServerPath); | ||
} | ||
@@ -87,3 +80,3 @@ config = flattenAndSort(config); | ||
}) => { | ||
if (addedEntryServer && entryServerPath) { | ||
if (entryServerPath) { | ||
fs.rmSync(entryServerPath); | ||
@@ -90,0 +83,0 @@ } |
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
133146
1037