From bd39bd7f1590a3f4e5c36abc7d454ecf16f8f3ef Mon Sep 17 00:00:00 2001 From: Sanyam Kapoor Date: Wed, 3 Apr 2024 00:07:04 -0400 Subject: [PATCH] update cf config --- .github/workflows/pages.yml | 3 +- astro.config.mjs | 10 +++--- package-lock.json | 72 ++++++++++++++++++------------------- package.json | 12 +++---- 4 files changed, 49 insertions(+), 48 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 84985b5..6b62605 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -68,13 +68,12 @@ jobs: projectName: ${{ secrets.CLOUDFLARE_PAGES_PROJECT }} directory: dist gitHubToken: ${{ secrets.GITHUB_TOKEN }} - wranglerVersion: 3 - name: Slack Notify uses: rtCamp/action-slack-notify@v2 env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - SLACK_FOOTER: '' + SLACK_FOOTER: "" SLACK_COLOR: ${{ job.status }} if: always() diff --git a/astro.config.mjs b/astro.config.mjs index 69fd7f0..510f245 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,14 +1,11 @@ import { defineConfig } from "astro/config"; - import cloudflare from "@astrojs/cloudflare"; import react from "@astrojs/react"; import mdx from "@astrojs/mdx"; import sitemap from "@astrojs/sitemap"; - import remarkEmoji from "remark-emoji"; import remarkHint from "remark-hint"; import remarkMath from "remark-math"; - import rehypeExternalLinks from "rehype-external-links"; import rehypeFigure from "rehype-figure"; import rehypeKatex from "rehype-katex"; @@ -20,6 +17,9 @@ export default defineConfig({ resolve: { preserveSymlinks: true, }, + ssr: { + external: ["node:buffer"], + }, }, markdown: { gfm: true, @@ -113,6 +113,8 @@ export default defineConfig({ }), ], output: "server", - adapter: cloudflare(), + adapter: cloudflare({ + imageService: "passthrough", + }), site: `https://${process.env.ASTRO_SITE || "copernicus.local"}`, }); diff --git a/package-lock.json b/package-lock.json index 28ca134..95ba411 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,27 +1,27 @@ { "name": "copernicus", - "version": "0.3.0", + "version": "0.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "copernicus", - "version": "0.3.0", + "version": "0.4.0", "dependencies": { "@astrojs/cloudflare": "^10.0.2", - "@astrojs/mdx": "^2.2.2", - "@astrojs/react": "^3.1.0", + "@astrojs/mdx": "^2.2.3", + "@astrojs/react": "^3.1.1", "@astrojs/rss": "^4.0.5", "@astrojs/sitemap": "^3.1.2", "@picocss/pico": "^2.0.6", - "@types/react": "^18.2.73", + "@types/react": "^18.2.74", "@types/react-dom": "^18.2.23", - "astro": "^4.5.13", + "astro": "^4.5.14", "autoprefixer": "^10.4.19", "cssnano": "^6.1.2", "github-slugger": "^2.0.0", "node-emoji": "^2.1.3", - "pagefind": "^1.0.4", + "pagefind": "^1.1.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^5.0.1", @@ -143,9 +143,9 @@ } }, "node_modules/@astrojs/react": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@astrojs/react/-/react-3.1.0.tgz", - "integrity": "sha512-KZhZyV+sUDZEjlrmPWNiPGeYowG9uq6/aMbCgVaeKEBlWT4Kg32TNwBOhZk6AcE4LY1l3mIwt3orUGE2JV96/g==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@astrojs/react/-/react-3.1.1.tgz", + "integrity": "sha512-Uc4zY8UxkZrSKmiFGPyy+0uUKGgVETJSra5c/65Z2ZckJEHtgLYW0ZqGUoItGr0wJFMv+h1g3Z4OJGapGgcUyA==", "dependencies": { "@vitejs/plugin-react": "^4.2.0", "ultrahtml": "^1.3.0" @@ -1171,9 +1171,9 @@ } }, "node_modules/@pagefind/darwin-arm64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@pagefind/darwin-arm64/-/darwin-arm64-1.0.4.tgz", - "integrity": "sha512-2OcthvceX2xhm5XbgOmW+lT45oLuHqCmvFeFtxh1gsuP5cO8vcD8ZH8Laj4pXQFCcK6eAdSShx+Ztx/LsQWZFQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@pagefind/darwin-arm64/-/darwin-arm64-1.1.0.tgz", + "integrity": "sha512-SLsXNLtSilGZjvqis8sX42fBWsWAVkcDh1oerxwqbac84HbiwxpxOC2jm8hRwcR0Z55HPZPWO77XeRix/8GwTg==", "cpu": [ "arm64" ], @@ -1183,9 +1183,9 @@ ] }, "node_modules/@pagefind/darwin-x64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@pagefind/darwin-x64/-/darwin-x64-1.0.4.tgz", - "integrity": "sha512-xkdvp0D9Ld/ZKsjo/y1bgfhTEU72ITimd2PMMQtts7jf6JPIOJbsiErCvm37m/qMFuPGEq/8d+fZ4pydOj08HQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@pagefind/darwin-x64/-/darwin-x64-1.1.0.tgz", + "integrity": "sha512-QjQSE/L5oS1C8N8GdljGaWtjCBMgMtfrPAoiCmINTu9Y9dp0ggAyXvF8K7Qg3VyIMYJ6v8vg2PN7Z3b+AaAqUA==", "cpu": [ "x64" ], @@ -1195,9 +1195,9 @@ ] }, "node_modules/@pagefind/linux-arm64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@pagefind/linux-arm64/-/linux-arm64-1.0.4.tgz", - "integrity": "sha512-jGBrcCzIrMnNxLKVtogaQyajVfTAXM59KlBEwg6vTn8NW4fQ6nuFbbhlG4dTIsaamjEM5e8ZBEAKZfTB/qd9xw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@pagefind/linux-arm64/-/linux-arm64-1.1.0.tgz", + "integrity": "sha512-8zjYCa2BtNEL7KnXtysPtBELCyv5DSQ4yHeK/nsEq6w4ToAMTBl0K06khqxdSGgjMSwwrxvLzq3so0LC5Q14dA==", "cpu": [ "arm64" ], @@ -1207,9 +1207,9 @@ ] }, "node_modules/@pagefind/linux-x64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@pagefind/linux-x64/-/linux-x64-1.0.4.tgz", - "integrity": "sha512-LIn/QcvcEtLEBqKe5vpSbSC2O3fvqbRCWOTIklslqSORisCsvzsWbP6j+LYxE9q0oWIfkdMoWV1vrE/oCKRxHg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@pagefind/linux-x64/-/linux-x64-1.1.0.tgz", + "integrity": "sha512-4lsg6VB7A6PWTwaP8oSmXV4O9H0IHX7AlwTDcfyT+YJo/sPXOVjqycD5cdBgqNLfUk8B9bkWcTDCRmJbHrKeCw==", "cpu": [ "x64" ], @@ -1219,9 +1219,9 @@ ] }, "node_modules/@pagefind/windows-x64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@pagefind/windows-x64/-/windows-x64-1.0.4.tgz", - "integrity": "sha512-QlBCVeZfj9fc9sbUgdOz76ZDbeK4xZihOBAFqGuRJeChfM8pnVeH9iqSnXgO3+m9oITugTf7PicyRUFAG76xeQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@pagefind/windows-x64/-/windows-x64-1.1.0.tgz", + "integrity": "sha512-OboCM76BcMKT9IoSfZuFhiqMRgTde8x4qDDvKulFmycgiJrlL5WnIqBHJLQxZq+o2KyZpoHF97iwsGAm8c32sQ==", "cpu": [ "x64" ], @@ -1776,9 +1776,9 @@ } }, "node_modules/astro": { - "version": "4.5.13", - "resolved": "https://registry.npmjs.org/astro/-/astro-4.5.13.tgz", - "integrity": "sha512-vbkiPH0J8dp5OlsvQpW3PcuV36U4vGRcdcL/LxXDwmeVjzVo6DH3Fkv+DAU5UDs7ciYodadomOo4+VZKvi8ylw==", + "version": "4.5.14", + "resolved": "https://registry.npmjs.org/astro/-/astro-4.5.14.tgz", + "integrity": "sha512-OXQ9Wbcn5e2eEPrNKJjGXeCWnKamNGyvSwORL0B8BB1fp3OO/EYo/RfeQGTR9kxGNxEpokoPZL9JNgFHoVK+wA==", "dependencies": { "@astrojs/compiler": "^2.7.1", "@astrojs/internal-helpers": "0.4.0", @@ -5633,18 +5633,18 @@ } }, "node_modules/pagefind": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/pagefind/-/pagefind-1.0.4.tgz", - "integrity": "sha512-oRIizYe+zSI2Jw4zcMU0ebDZm27751hRFiSOBLwc1OIYMrsZKk+3m8p9EVaOmc6zZdtqwwdilNUNxXvBeHcP9w==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pagefind/-/pagefind-1.1.0.tgz", + "integrity": "sha512-1nmj0/vfYcMxNEQj0YDRp6bTVv9hI7HLdPhK/vBBYlrnwjATndQvHyicj5Y7pUHrpCFZpFnLVQXIF829tpFmaw==", "bin": { "pagefind": "lib/runner/bin.cjs" }, "optionalDependencies": { - "@pagefind/darwin-arm64": "1.0.4", - "@pagefind/darwin-x64": "1.0.4", - "@pagefind/linux-arm64": "1.0.4", - "@pagefind/linux-x64": "1.0.4", - "@pagefind/windows-x64": "1.0.4" + "@pagefind/darwin-arm64": "1.1.0", + "@pagefind/darwin-x64": "1.1.0", + "@pagefind/linux-arm64": "1.1.0", + "@pagefind/linux-x64": "1.1.0", + "@pagefind/windows-x64": "1.1.0" } }, "node_modules/parse-entities": { diff --git a/package.json b/package.json index ef3d96a..984bfcd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "copernicus", "type": "module", - "version": "0.3.0", + "version": "0.4.0", "scripts": { "dev": "astro dev", "pretty": "prettier --write .", @@ -13,19 +13,19 @@ }, "dependencies": { "@astrojs/cloudflare": "^10.0.2", - "@astrojs/mdx": "^2.2.2", - "@astrojs/react": "^3.1.0", + "@astrojs/mdx": "^2.2.3", + "@astrojs/react": "^3.1.1", "@astrojs/rss": "^4.0.5", "@astrojs/sitemap": "^3.1.2", "@picocss/pico": "^2.0.6", - "@types/react": "^18.2.73", + "@types/react": "^18.2.74", "@types/react-dom": "^18.2.23", - "astro": "^4.5.13", + "astro": "^4.5.14", "autoprefixer": "^10.4.19", "cssnano": "^6.1.2", "github-slugger": "^2.0.0", "node-emoji": "^2.1.3", - "pagefind": "^1.0.4", + "pagefind": "^1.1.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^5.0.1",