chore: monkey patch the astro.

This commit is contained in:
Yufan Sheng 2024-06-17 23:45:27 +08:00
parent 6edaafd18d
commit c7cea93c93
Signed by: syhily
GPG Key ID: DEB186763C308C31
3 changed files with 24 additions and 0 deletions

View File

@ -7,6 +7,7 @@ COPY . .
ENV ASTRO_TELEMETRY_DISABLED=1
RUN NODE_ENV=development npm install
RUN npm i patch-package && npm exec patch-package
RUN npm run build
FROM base AS runtime

View File

@ -179,6 +179,7 @@ For instance, the [giscus](https://giscus.app) is an opinionated choice.
- [ ] Check article grammar errors by using ChatGPT. Remain **54** posts.
- [ ] Add music to the articles. Remain **54** posts.
- [ ] Use Astro new Action definition.
- [ ] External the article inner links with different target.
- [ ] Slide share components integration.

View File

@ -0,0 +1,22 @@
diff --git a/node_modules/astro/dist/content/types-generator.js b/node_modules/astro/dist/content/types-generator.js
index af976bb..b03e214 100644
--- a/node_modules/astro/dist/content/types-generator.js
+++ b/node_modules/astro/dist/content/types-generator.js
@@ -351,8 +351,6 @@ async function writeContentFiles({
collection: ${collectionKey};
data: ${dataType}
};
-`;
- dataTypesStr += `};
`;
}
if (settings.config.experimental.contentCollectionJsonSchema && collectionConfig?.schema) {
@@ -382,6 +380,8 @@ async function writeContentFiles({
);
}
}
+ dataTypesStr += `};
+`;
break;
}
}