mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 12:57:47 +00:00
This demo now showcases: - `/` - A static page (pre-rendered) - `/ssr` - A page that uses server-side rendering (through Vercel Edge Functions) - `/ssr-with-swr-caching` - Similar to the previous page, but also caches the response on the Vercel Edge Network using `cache-control` headers - `/edge.json` - An Astro API Endpoint that returns JSON data using Vercel Edge Functions The new example has been deployed to https://astro.vercel.app.
8 lines
164 B
JavaScript
8 lines
164 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import vercel from '@astrojs/vercel/edge';
|
|
|
|
export default defineConfig({
|
|
output: 'server',
|
|
adapter: vercel(),
|
|
});
|