Skip to content

Commit

Permalink
update cf config
Browse files Browse the repository at this point in the history
  • Loading branch information
activatedgeek committed Apr 3, 2024
1 parent 6066749 commit bd39bd7
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 48 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
10 changes: 6 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -20,6 +17,9 @@ export default defineConfig({
resolve: {
preserveSymlinks: true,
},
ssr: {
external: ["node:buffer"],
},
},
markdown: {
gfm: true,
Expand Down Expand Up @@ -113,6 +113,8 @@ export default defineConfig({
}),
],
output: "server",
adapter: cloudflare(),
adapter: cloudflare({
imageService: "passthrough",
}),
site: `https://${process.env.ASTRO_SITE || "copernicus.local"}`,
});
72 changes: 36 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "copernicus",
"type": "module",
"version": "0.3.0",
"version": "0.4.0",
"scripts": {
"dev": "astro dev",
"pretty": "prettier --write .",
Expand All @@ -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",
Expand Down

0 comments on commit bd39bd7

Please sign in to comment.