Skip to content

Commit

Permalink
using vercel image service
Browse files Browse the repository at this point in the history
  • Loading branch information
iswilljr committed Sep 4, 2023
1 parent 763c4a8 commit 578ba96
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 17 deletions.
9 changes: 9 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import vercel from '@astrojs/vercel/static'
import { defineConfig } from 'astro/config'

export default defineConfig({
site: 'https://therickandmortyapi.vercel.app',
integrations: [mdx(), sitemap(), tailwind()],
output: 'static',
adapter: vercel({
imageService: process.env.VERCEL != null,
imagesConfig: {
sizes: [240, 320, 640, 1280],
domains: ['raw.githubusercontent.com'],
},
}),
markdown: {
syntaxHighlight: 'prism',
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@astrojs/rss": "3.0.0",
"@astrojs/sitemap": "3.0.0",
"@astrojs/tailwind": "5.0.0",
"@astrojs/vercel": "4.0.3",
"astro": "3.0.7",
"clsx": "2.0.0"
},
Expand Down
Loading

1 comment on commit 578ba96

@vercel
Copy link

@vercel vercel bot commented on 578ba96 Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.