-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Closed
Copy link
Description
Is your feature request related to a problem? Please describe.
export default {
async paths() {
const data = await (await fetch('https://my-cms-api', {
headers: {
}
})).json()
return data.map(entry => {
return {
params: { id: entry.id, /* title, authors, date 等 */ },
content: entry.content,
????
}
})
}
}
Describe the solution you'd like
export default {
async paths() {
const data = await (await fetch('https://my-cms-api', {
headers: {
}
})).json()
return data.map(entry => {
return {
params: { id: entry.id, /* title, authors, date 等 */ },
content: entry.content,
????
}
})
}
}
Describe alternatives you've considered
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the docs.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels