2018-06-18 23:22:40 +02:00
|
|
|
import React from 'react'
|
2019-08-22 22:19:15 +02:00
|
|
|
import App from 'next/app'
|
2018-06-18 23:22:40 +02:00
|
|
|
|
|
|
|
export default class MyApp extends App {
|
|
|
|
// find this
|
|
|
|
|
2019-11-11 04:24:53 +01:00
|
|
|
static async getInitialProps({ ctx }) {
|
2018-06-18 23:22:40 +02:00
|
|
|
const { query, pathname, asPath } = ctx
|
2019-02-19 22:45:07 +01:00
|
|
|
return { url: { query, pathname, asPath } }
|
2018-06-18 23:22:40 +02:00
|
|
|
}
|
|
|
|
|
2019-11-11 04:24:53 +01:00
|
|
|
render() {
|
2019-02-19 22:45:07 +01:00
|
|
|
const { Component, url } = this.props
|
2019-08-22 22:19:15 +02:00
|
|
|
return <Component url={url} />
|
2018-06-18 23:22:40 +02:00
|
|
|
}
|
|
|
|
}
|