Compare commits

...

3 commits

Author SHA1 Message Date
bholmesdev
6fb02c25de wip: add logging for config load 2023-03-06 16:13:58 -05:00
bholmesdev
21cac83013 revert content import loading 2023-03-06 16:13:48 -05:00
bholmesdev
17cc8bdeab wip: add config loading to mod import 2023-03-06 16:10:19 -05:00

View file

@ -170,6 +170,7 @@ export function getEntryType(
} else if ((contentFileExts as readonly string[]).includes(ext)) {
return 'content';
} else if (fileUrl.href === paths.config.url.href) {
console.log('$$$ASTRO - triggered config load event');
return 'config';
} else {
return 'unsupported';
@ -328,6 +329,11 @@ export function getContentPaths(
): ContentPaths {
const configStats = search(fs, srcDir);
const templateDir = new URL('../../src/content/template/', import.meta.url);
console.log('$$$ASTRO', {
srcDir: srcDir.pathname,
root: root.pathname,
configUrl: configStats.url.pathname,
});
return {
cacheDir: new URL('.astro/', root),
contentDir: new URL('./content/', srcDir),