fix(remix): import of config file should invalidate cache (#21121)

This commit is contained in:
Colum Ferry 2024-01-12 19:17:39 +00:00 committed by GitHub
parent 9559f7e7ac
commit 1d2bfde11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,9 @@ async function getServerBuildPath(
try {
let appConfigModule: any;
try {
appConfigModule = await Function(`return import("${configPath}")`)();
appConfigModule = await Function(
`return import("${configPath}?t=${Date.now()}")`
)();
} catch {
appConfigModule = require(configPath);
}