Try integrating once more

This commit is contained in:
Austin Chen 2022-05-18 08:54:55 -04:00
parent fe8bba282e
commit dc2a184da2
2 changed files with 6 additions and 9 deletions

View File

@ -2,7 +2,7 @@ import { DEV_CONFIG } from './dev'
import { EnvConfig, PROD_CONFIG } from './prod'
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 = {
PROD: PROD_CONFIG,

View File

@ -12,14 +12,11 @@ export function Page(props: {
children?: any
}) {
const { margin, assertUser, children, rightSidebar, suspend } = props
useEffect(() => {
if (typeof document !== 'undefined') {
// This seems to work...
console.log(document)
// But not this...
initPreviews()
// Seems to be undefined; because of https://i.imgur.com/4bMQ8rA.png ?
console.log(initPreviews)
}
}, [])
return (
<>