Files
payload/examples/astro/website/astro.config.mjs
Sasha 2bf58b6ac5 examples: add example on Astro + Payload Local API (#10174)
Adds example on using the Local API (both fetching data and modifying
data) with Astro (vanilla JS)


https://github.com/user-attachments/assets/bf2dee99-2ad7-43f5-b809-1cf626051720

This is achieved through the monorepo:
```
website/
payload/
```
2025-01-20 14:04:09 -06:00

14 lines
242 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config'
import node from '@astrojs/node'
import { loadEnv } from 'payload/node'
loadEnv()
export default defineConfig({
output: 'server',
adapter: node({
mode: 'standalone',
}),
})