1
0
mirror of https://github.com/kremalicious/gatsby-redirect-from.git synced 2024-06-16 01:13:22 +02:00
This commit is contained in:
Sylvain BRUAS 2024-04-23 20:05:12 +00:00 committed by GitHub
commit 31ec90ab29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ export async function createPages({ graphql, actions }, pluginOptions) {
allPosts.forEach(({ node }) => {
let _slug
const { redirect_from, slug } = node.frontmatter
if (!slug) _slug = node.fields?.slug
_slug = slug || node.fields?.slug;
if (!_slug) {
console.log(
'%c %s %c %s',