We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd7fe3f commit 9f87ca4Copy full SHA for 9f87ca4
.changeset/thin-feet-return.md
@@ -0,0 +1,5 @@
1
+---
2
+"apeu": patch
3
4
+
5
+Fixes an issue where CONTENT_PATH was no longer defined when using this project as a Git submodule.
src/lib/astro/loaders/glob-loader.ts
@@ -7,7 +7,10 @@ import {
7
type AvailableLanguage,
8
} from "../../../utils/i18n";
9
10
-const CONTENT_DIR: string = import.meta.env?.CONTENT_PATH ?? "./content";
+/* This is not a supported usage, so it could break. Currently `import.meta.
11
+ * env` doesn't work anymore when using a path outside the project's root (ie.
12
+ * when I'm using a Git submodules). Using `process.env` seems to fix that. */
13
+const CONTENT_DIR: string = process.env?.CONTENT_PATH ?? "./content";
14
15
const getLocalesPattern = () => {
16
if (CONFIG.LANGUAGES.AVAILABLE.length > 1)
0 commit comments