1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 22:01:44 +02:00

try to mix static/dynamic paths again

This commit is contained in:
Matthias Kretschmann 2020-07-07 10:26:38 +02:00
parent 63955639d1
commit 996bf9205b
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -64,16 +64,16 @@ exports.createPages = async ({ graphql, actions }) => {
})
}
// exports.onCreatePage = async ({ page, actions }) => {
// const { createPage } = actions
// // page.matchPath is a special key that's used for matching pages
// // only on the client.
// const handleClientSideOnly = page.path.match(/^\/asset/)
exports.onCreatePage = async ({ page, actions }) => {
const { createPage } = actions
// page.matchPath is a special key that's used for matching pages
// only on the client.
const handleClientSideOnly = page.path.match(/^\/asset/)
// if (handleClientSideOnly) {
// page.matchPath = '/asset/*'
if (handleClientSideOnly) {
page.matchPath = '/asset/*'
// // Update the page.
// createPage(page)
// }
// }
// Update the page.
createPage(page)
}
}