Skip to content

Commit

Permalink
downgrade cf adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
activatedgeek committed Apr 3, 2024
1 parent 6066749 commit c6eace3
Show file tree
Hide file tree
Showing 4 changed files with 197 additions and 666 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"}`,
});
Loading

0 comments on commit c6eace3

Please sign in to comment.