Skip to content

Commit

Permalink
add vercel support (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
roneli authored Mar 6, 2024
1 parent 5856329 commit e0626e5
Show file tree
Hide file tree
Showing 3 changed files with 381 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
import {defineConfig} from 'astro/config';
import starlight from '@astrojs/starlight';
// Also can be @astrojs/vercel/static
import vercel from '@astrojs/vercel/serverless';

// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: vercel({
webAnalytics: {
enabled: true,
},
maxDuration: 8,
}),
site: 'https://fastgql.com',
base: "/docs",
integrations: [
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@astrojs/check": "^0.3.4",
"@astrojs/starlight": "^0.15.1",
"@astrojs/vercel": "^7.3.5",
"astro": "^4.0.1",
"sharp": "^0.32.5",
"typescript": "^5.3.3"
Expand Down
Loading

0 comments on commit e0626e5

Please sign in to comment.