fix(remix): import of config file should invalidate cache (#21121)
This commit is contained in:
parent
9559f7e7ac
commit
1d2bfde11a
@ -185,7 +185,9 @@ async function getServerBuildPath(
|
|||||||
try {
|
try {
|
||||||
let appConfigModule: any;
|
let appConfigModule: any;
|
||||||
try {
|
try {
|
||||||
appConfigModule = await Function(`return import("${configPath}")`)();
|
appConfigModule = await Function(
|
||||||
|
`return import("${configPath}?t=${Date.now()}")`
|
||||||
|
)();
|
||||||
} catch {
|
} catch {
|
||||||
appConfigModule = require(configPath);
|
appConfigModule = require(configPath);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user