chore: monkey patch the astro.
This commit is contained in:
parent
8b0a540eb1
commit
6252758a8f
@ -7,6 +7,7 @@ COPY . .
|
|||||||
|
|
||||||
ENV ASTRO_TELEMETRY_DISABLED=1
|
ENV ASTRO_TELEMETRY_DISABLED=1
|
||||||
RUN NODE_ENV=development npm install
|
RUN NODE_ENV=development npm install
|
||||||
|
RUN npm i patch-package && npm exec patch-package
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM base AS runtime
|
FROM base AS runtime
|
||||||
|
@ -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.
|
- [ ] Check article grammar errors by using ChatGPT. Remain **54** posts.
|
||||||
- [ ] Add music to the articles. Remain **54** posts.
|
- [ ] Add music to the articles. Remain **54** posts.
|
||||||
|
- [ ] Use Astro new Action definition.
|
||||||
- [ ] External the article inner links with different target.
|
- [ ] External the article inner links with different target.
|
||||||
- [ ] Slide share components integration.
|
- [ ] Slide share components integration.
|
||||||
|
|
||||||
|
22
patches/astro+4.10.3.patch
Normal file
22
patches/astro+4.10.3.patch
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user