Try integrating once more
This commit is contained in:
parent
fe8bba282e
commit
dc2a184da2
|
@ -2,7 +2,7 @@ import { DEV_CONFIG } from './dev'
|
||||||
import { EnvConfig, PROD_CONFIG } from './prod'
|
import { EnvConfig, PROD_CONFIG } from './prod'
|
||||||
import { THEOREMONE_CONFIG } from './theoremone'
|
import { THEOREMONE_CONFIG } from './theoremone'
|
||||||
|
|
||||||
export const ENV = process.env.NEXT_PUBLIC_FIREBASE_ENV ?? 'PROD'
|
export const ENV = process.env.NEXT_PUBLIC_FIREBASE_ENV ?? 'DEV'
|
||||||
|
|
||||||
const CONFIGS = {
|
const CONFIGS = {
|
||||||
PROD: PROD_CONFIG,
|
PROD: PROD_CONFIG,
|
||||||
|
|
|
@ -12,14 +12,11 @@ export function Page(props: {
|
||||||
children?: any
|
children?: any
|
||||||
}) {
|
}) {
|
||||||
const { margin, assertUser, children, rightSidebar, suspend } = props
|
const { margin, assertUser, children, rightSidebar, suspend } = props
|
||||||
useEffect(() => {
|
|
||||||
if (typeof document !== 'undefined') {
|
if (typeof document !== 'undefined') {
|
||||||
// This seems to work...
|
// Seems to be undefined; because of https://i.imgur.com/4bMQ8rA.png ?
|
||||||
console.log(document)
|
console.log(initPreviews)
|
||||||
// But not this...
|
}
|
||||||
initPreviews()
|
|
||||||
}
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user