Skip to content

Commit

Permalink
feat: add cloudflare SSR adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
ardasevinc committed Oct 5, 2023
1 parent 919e738 commit 4af3208
Show file tree
Hide file tree
Showing 3 changed files with 441 additions and 3 deletions.
7 changes: 5 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { defineConfig } from 'astro/config';

import cloudflare from '@astrojs/cloudflare';
import tailwind from "@astrojs/tailwind";


// https://astro.build/config
export default defineConfig({
integrations: [tailwind()]
integrations: [tailwind()],
output: "server",
adapter: cloudflare()
});
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"preview:cf": "wrangler pages dev ./dist"
},
"dependencies": {
"@astrojs/cloudflare": "^7.5.1",
"@astrojs/tailwind": "^5.0.1",
"astro": "^3.2.3",
"tailwindcss": "^3.0.24"
Expand Down
Loading

0 comments on commit 4af3208

Please sign in to comment.