fix: incorrect snapshot path with non-standard src directory (#1768)
This commit is contained in:
@@ -167,7 +167,10 @@ export class ServerContext {
|
||||
// Load from snapshot if not explicitly requested not to
|
||||
const loadFromSnapshot = !opts.skipSnapshot;
|
||||
if (loadFromSnapshot) {
|
||||
const snapshotDirPath = join(dirname(configPath), "_fresh");
|
||||
const snapshotDirPath = join(
|
||||
dirname(fromFileUrl(manifest.baseUrl)),
|
||||
"_fresh",
|
||||
);
|
||||
try {
|
||||
if ((await Deno.stat(snapshotDirPath)).isDirectory) {
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user