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/ ```
14 lines
242 B
JavaScript
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',
|
|
}),
|
|
})
|