wip: add logging for config load
This commit is contained in:
parent
21cac83013
commit
6fb02c25de
1 changed files with 6 additions and 0 deletions
|
@ -170,6 +170,7 @@ export function getEntryType(
|
||||||
} else if ((contentFileExts as readonly string[]).includes(ext)) {
|
} else if ((contentFileExts as readonly string[]).includes(ext)) {
|
||||||
return 'content';
|
return 'content';
|
||||||
} else if (fileUrl.href === paths.config.url.href) {
|
} else if (fileUrl.href === paths.config.url.href) {
|
||||||
|
console.log('$$$ASTRO - triggered config load event');
|
||||||
return 'config';
|
return 'config';
|
||||||
} else {
|
} else {
|
||||||
return 'unsupported';
|
return 'unsupported';
|
||||||
|
@ -328,6 +329,11 @@ export function getContentPaths(
|
||||||
): ContentPaths {
|
): ContentPaths {
|
||||||
const configStats = search(fs, srcDir);
|
const configStats = search(fs, srcDir);
|
||||||
const templateDir = new URL('../../src/content/template/', import.meta.url);
|
const templateDir = new URL('../../src/content/template/', import.meta.url);
|
||||||
|
console.log('$$$ASTRO', {
|
||||||
|
srcDir: srcDir.pathname,
|
||||||
|
root: root.pathname,
|
||||||
|
configUrl: configStats.url.pathname,
|
||||||
|
});
|
||||||
return {
|
return {
|
||||||
cacheDir: new URL('.astro/', root),
|
cacheDir: new URL('.astro/', root),
|
||||||
contentDir: new URL('./content/', srcDir),
|
contentDir: new URL('./content/', srcDir),
|
||||||
|
|
Loading…
Add table
Reference in a new issue