From 3d78b9e56ce52fe868467a531ed0aa298ebbfc9c Mon Sep 17 00:00:00 2001 From: Max Richter Date: Wed, 14 May 2025 18:21:42 +0200 Subject: [PATCH] chore: pnpm up --- .github/workflows/default.yaml | 15 +++++++++++++-- astro.config.mjs | 7 +++++++ uno.config.ts | 4 ++-- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index 1c711f2..6eaeca5 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -51,10 +51,21 @@ jobs: - name: 🔄 Pull Git LFS files run: git lfs pull + - name: 🔧 Increase file descriptor limits + run: | + echo "Current file descriptor limits:" + ulimit -n + echo "Increasing file descriptor limits..." + ulimit -n 65536 + echo "New file descriptor limits:" + ulimit -n + - name: 🏗️ Build site run: | - # Install dependencies, build, and generate site output - ulimit -n 65536 && pnpm i && pnpm build + # Build with NODE_OPTIONS to increase memory limits and avoid watching files + export NODE_OPTIONS="--max-old-space-size=4096 --no-warnings --use-inlining-snapshots" + # Astro-specific optimizations to avoid file watching + pnpm i && NODE_ENV=production ASTRO_DISABLE_HMR=true pnpm build - name: 🔑 Configure rclone run: | diff --git a/astro.config.mjs b/astro.config.mjs index 8103c77..d4057e9 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -38,6 +38,13 @@ export default defineConfig({ compiler: 'svelte', }), ], + server: { + watch: { + // Customize watch behavior to reduce file watchers + ignored: ['**/node_modules/**', '**/dist/**', '**/.git/**'], + usePolling: process.env.NODE_ENV === 'production', + }, + }, }, markdown: { remarkPlugins: [setDefaultLayout] diff --git a/uno.config.ts b/uno.config.ts index 70efb8e..1f795bf 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -1,10 +1,10 @@ // uno.config.ts -import { defineConfig, presetUno } from 'unocss' +import { defineConfig, presetWind3 } from 'unocss' import presetIcons from '@unocss/preset-icons' export default defineConfig({ presets: [ - presetUno(), + presetWind3(), presetIcons(), ], shortcuts: {