-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6a9d39
commit e4493cf
Showing
5 changed files
with
137 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/dist/content/vite-plugin-content-imports.js b/dist/content/vite-plugin-content-imports.js | ||
index 89029889cb9a26dd7d6646d9a625beb7c32406e7..136f7480d101c7adb2cfc4acf5166c936e3d0138 100644 | ||
--- a/dist/content/vite-plugin-content-imports.js | ||
+++ b/dist/content/vite-plugin-content-imports.js | ||
@@ -18,7 +18,8 @@ import { | ||
globalContentConfigObserver, | ||
hasContentFlag, | ||
parseEntrySlug, | ||
- reloadContentConfigObserver | ||
+ reloadContentConfigObserver, | ||
+ hasUnderscoreBelowContentDirectoryPath, | ||
} from "./utils.js"; | ||
function getContentRendererByViteId(viteId, settings) { | ||
let ext = viteId.split(".").pop(); | ||
@@ -51,7 +52,16 @@ function astroContentImportPlugin({ | ||
{ | ||
name: "astro:content-imports", | ||
async transform(_, viteId) { | ||
- if (hasContentFlag(viteId, DATA_FLAG)) { | ||
+ if (hasContentFlag(viteId, DATA_FLAG)) { | ||
+ if ( | ||
+ contentPaths.contentDir && | ||
+ hasUnderscoreBelowContentDirectoryPath( | ||
+ new URL(viteId, "file:"), | ||
+ contentPaths.contentDir | ||
+ ) | ||
+ ) { | ||
+ return null; | ||
+ } | ||
const fileId = viteId.split("?")[0] ?? viteId; | ||
const { id, data, collection, _internal } = await getDataEntryModule({ | ||
fileId, |
Oops, something went wrong.
e4493cf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
erika-florist – ./
erika-florist-princesseuh.vercel.app
erika-florist.vercel.app
erika-florist-git-main-princesseuh.vercel.app