mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
try to mix static/dynamic paths again
This commit is contained in:
parent
63955639d1
commit
996bf9205b
@ -64,16 +64,16 @@ exports.createPages = async ({ graphql, actions }) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// exports.onCreatePage = async ({ page, actions }) => {
|
exports.onCreatePage = async ({ page, actions }) => {
|
||||||
// const { createPage } = actions
|
const { createPage } = actions
|
||||||
// // page.matchPath is a special key that's used for matching pages
|
// page.matchPath is a special key that's used for matching pages
|
||||||
// // only on the client.
|
// only on the client.
|
||||||
// const handleClientSideOnly = page.path.match(/^\/asset/)
|
const handleClientSideOnly = page.path.match(/^\/asset/)
|
||||||
|
|
||||||
// if (handleClientSideOnly) {
|
if (handleClientSideOnly) {
|
||||||
// page.matchPath = '/asset/*'
|
page.matchPath = '/asset/*'
|
||||||
|
|
||||||
// // Update the page.
|
// Update the page.
|
||||||
// createPage(page)
|
createPage(page)
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user