detail page port
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import { strapi } from '@strapi/client'
|
||||
import * as prismic from '@prismicio/client'
|
||||
|
||||
export const data = async () => {
|
||||
const client = strapi({
|
||||
baseURL: 'https://cms.takerofnotes.com/api',
|
||||
auth: import.meta.env.STRAPI_API_TOKEN,
|
||||
})
|
||||
const client = prismic.createClient('swang')
|
||||
|
||||
const global = client.single('global')
|
||||
return await global.find()
|
||||
const events = await client.getAllByType('event')
|
||||
|
||||
return { events }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user