Skip to content

Commit

Permalink
Move all images to public, updated astro config, migrate from vercel …
Browse files Browse the repository at this point in the history
…to cloudflare
  • Loading branch information
vratskyi committed Feb 29, 2024
1 parent 7de4c34 commit 5e65c23
Show file tree
Hide file tree
Showing 49 changed files with 1,157 additions and 651 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
dist/
# generated types
.astro/

.dist/
.vercel/
# dependencies
node_modules/

Expand Down
21 changes: 10 additions & 11 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import mdx from "@astrojs/mdx";
import compress from "astro-compress";
import tailwind from "@astrojs/tailwind";

import vercel from "@astrojs/vercel/serverless";
import cloudflare from "@astrojs/cloudflare";

// https://astro.build/config
export default defineConfig({
Expand All @@ -30,19 +30,18 @@ export default defineConfig({
}), tailwind()],
// site: 'http://localhost:4321',
prefetch: {
prefetchAll: false,
prefetchAll: true,
defaultStrategy: 'viewport'
},
experimental: {
clientPrerender: false,
},
output: "server",
adapter: vercel({
isr: {
expiration: 60 * 60 * 24,
},
webAnalytics: {
enabled: true,
clientPrerender: true
},
output: "hybrid",
adapter: cloudflare({
mode: 'directory',
functionPerRoute: true,
routes: {
strategy: 'auto'
}
})
});
Loading

0 comments on commit 5e65c23

Please sign in to comment.