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 }) => {
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user