Fix: Update dependencies and configs to resolve build errors
This commit is contained in:
parent
c752aeea9d
commit
6698c24a09
|
@ -3,16 +3,28 @@ import { defineConfig } from 'astro/config';
|
||||||
import mdx from '@astrojs/mdx';
|
import mdx from '@astrojs/mdx';
|
||||||
import sitemap from '@astrojs/sitemap';
|
import sitemap from '@astrojs/sitemap';
|
||||||
import tailwind from '@astrojs/tailwind';
|
import tailwind from '@astrojs/tailwind';
|
||||||
|
import cloudflare from '@astrojs/cloudflare'; // Import cloudflare adapter
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: 'https://argobox.com', // Keep original site URL
|
site: 'https://argobox.com', // Keep original site URL
|
||||||
output: 'static',
|
output: 'static',
|
||||||
// adapter: cloudflare(), // Still commented out
|
adapter: cloudflare(), // Enable cloudflare adapter
|
||||||
integrations: [
|
integrations: [
|
||||||
mdx(),
|
mdx(),
|
||||||
sitemap(),
|
sitemap(),
|
||||||
tailwind(),
|
tailwind(),
|
||||||
],
|
],
|
||||||
compressHTML: false // Disable HTML compression to avoid parsing errors
|
markdown: { // Add markdown config
|
||||||
|
shikiConfig: {
|
||||||
|
theme: 'one-dark-pro',
|
||||||
|
wrap: true
|
||||||
|
},
|
||||||
|
remarkPlugins: [],
|
||||||
|
rehypePlugins: []
|
||||||
|
},
|
||||||
|
compressHTML: false, // Disable HTML compression to avoid parsing errors
|
||||||
|
build: { // Add build format
|
||||||
|
format: 'file',
|
||||||
|
}
|
||||||
});
|
});
|
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
|
@ -9,15 +9,15 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/cloudflare": "^7.5.1",
|
"@astrojs/cloudflare": "12.5.0",
|
||||||
"@astrojs/mdx": "^1.1.0",
|
"@astrojs/mdx": "4.2.4",
|
||||||
"@astrojs/rss": "^3.0.0",
|
"@astrojs/rss": "4.0.11",
|
||||||
"@astrojs/sitemap": "^3.0.0",
|
"@astrojs/sitemap": "3.3.0",
|
||||||
"@astrojs/tailwind": "^5.0.0",
|
"@astrojs/tailwind": "6.0.2",
|
||||||
"astro": "^3.0.12",
|
"astro": "5.7.4",
|
||||||
"nodemailer": "^6.10.1",
|
"nodemailer": "^6.10.1",
|
||||||
"resend": "^4.4.1",
|
"resend": "^4.4.1",
|
||||||
"tailwindcss": "^3.3.5"
|
"tailwindcss": "3.4.17"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/typography": "^0.5.16"
|
"@tailwindcss/typography": "^0.5.16"
|
||||||
|
|
|
@ -35,22 +35,6 @@ const postsCollection = defineCollection({
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Define the external posts collection (for external articles)
|
|
||||||
const externalPostsCollection = defineCollection({
|
|
||||||
type: 'content',
|
|
||||||
schema: z.object({
|
|
||||||
title: z.string(),
|
|
||||||
description: z.string().optional(),
|
|
||||||
pubDate: z.coerce.date(),
|
|
||||||
url: z.string().url(),
|
|
||||||
heroImage: z.string().optional(),
|
|
||||||
source: z.string().optional(),
|
|
||||||
category: z.string().optional(),
|
|
||||||
categories: z.array(z.string()).optional(),
|
|
||||||
tags: z.array(z.string()).default([]),
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
|
|
||||||
// Define the configurations collection (for config files)
|
// Define the configurations collection (for config files)
|
||||||
const configurationsCollection = defineCollection({
|
const configurationsCollection = defineCollection({
|
||||||
type: 'content',
|
type: 'content',
|
||||||
|
@ -94,7 +78,6 @@ const projectsCollection = defineCollection({
|
||||||
// Export the collections
|
// Export the collections
|
||||||
export const collections = {
|
export const collections = {
|
||||||
posts: postsCollection,
|
posts: postsCollection,
|
||||||
'external-posts': externalPostsCollection,
|
|
||||||
configurations: configurationsCollection,
|
configurations: configurationsCollection,
|
||||||
projects: projectsCollection,
|
projects: projectsCollection,
|
||||||
};
|
};
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
// src/pages/resources/docker-compose.astro
|
// src/pages/resources/docker-compose.astro
|
||||||
import BaseLayout from '../../layouts/BaseLayout.astro';
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
import Header from '../../components/Header.astro';
|
import Header from '../../components/Header.astro';
|
||||||
|
@ -64,6 +65,7 @@ const filters = ["all", "media", "networking", "utilities"]; // Example filters
|
||||||
{filter.charAt(0).toUpperCase() + filter.slice(1)}
|
{filter.charAt(0).toUpperCase() + filter.slice(1)}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
|
{/* <button class="filter-button active" data-filter="all">All</button> */} {/* Remove Placeholder */}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="section-title">Docker Compose Files</h2>
|
<h2 class="section-title">Docker Compose Files</h2>
|
||||||
|
@ -387,7 +389,7 @@ const filters = ["all", "media", "networking", "utilities"]; // Example filters
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script is:inline>
|
||||||
// Copy button functionality & Filter functionality
|
// Copy button functionality & Filter functionality
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
// Copy Button
|
// Copy Button
|
||||||
|
|
Loading…
Reference in New Issue