bbffaea755
* update from latest canary * lint-fix
18 lines
456 B
TypeScript
18 lines
456 B
TypeScript
import '../styles/globals.css'
|
|
import { configureAbly } from '@ably-labs/react-hooks'
|
|
|
|
const prefix = process.env.API_ROOT || ''
|
|
const clientId =
|
|
Math.random().toString(36).substring(2, 15) +
|
|
Math.random().toString(36).substring(2, 15)
|
|
|
|
configureAbly({
|
|
authUrl: `${prefix}/api/createTokenRequest?clientId=${clientId}`,
|
|
clientId: clientId,
|
|
})
|
|
|
|
function MyApp({ Component, pageProps }) {
|
|
return <Component {...pageProps} />
|
|
}
|
|
|
|
export default MyApp
|