Fix: Update dependencies and configs to resolve build errors

This commit is contained in:
Daniel LaForce 2025-04-28 19:22:57 -06:00
parent c752aeea9d
commit 6698c24a09
5 changed files with 3464 additions and 3969 deletions

View File

@ -3,16 +3,28 @@ import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
import cloudflare from '@astrojs/cloudflare'; // Import cloudflare adapter
// https://astro.build/config
export default defineConfig({
site: 'https://argobox.com', // Keep original site URL
output: 'static',
// adapter: cloudflare(), // Still commented out
adapter: cloudflare(), // Enable cloudflare adapter
integrations: [
mdx(),
sitemap(),
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',
}
});

7382
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,15 +9,15 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/cloudflare": "^7.5.1",
"@astrojs/mdx": "^1.1.0",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
"@astrojs/tailwind": "^5.0.0",
"astro": "^3.0.12",
"@astrojs/cloudflare": "12.5.0",
"@astrojs/mdx": "4.2.4",
"@astrojs/rss": "4.0.11",
"@astrojs/sitemap": "3.3.0",
"@astrojs/tailwind": "6.0.2",
"astro": "5.7.4",
"nodemailer": "^6.10.1",
"resend": "^4.4.1",
"tailwindcss": "^3.3.5"
"tailwindcss": "3.4.17"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.16"

View File

@ -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)
const configurationsCollection = defineCollection({
type: 'content',
@ -94,7 +78,6 @@ const projectsCollection = defineCollection({
// Export the collections
export const collections = {
posts: postsCollection,
'external-posts': externalPostsCollection,
configurations: configurationsCollection,
projects: projectsCollection,
};

View File

@ -1,3 +1,4 @@
---
// src/pages/resources/docker-compose.astro
import BaseLayout from '../../layouts/BaseLayout.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)}
</button>
))}
{/* <button class="filter-button active" data-filter="all">All</button> */} {/* Remove Placeholder */}
</div>
<h2 class="section-title">Docker Compose Files</h2>
@ -387,7 +389,7 @@ const filters = ["all", "media", "networking", "utilities"]; // Example filters
}
</style>
<script>
<script is:inline>
// Copy button functionality & Filter functionality
document.addEventListener('DOMContentLoaded', () => {
// Copy Button