Skip to content

Commit

Permalink
Merge pull request #86 from yuki-wtf/fix-env-error
Browse files Browse the repository at this point in the history
Update console logs
  • Loading branch information
lorcan-codes authored Jan 30, 2024
2 parents 00505e2 + 9a98b7b commit f8b5ae5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export async function loader({ request }: LoaderArgs) {
console.error('root loader error', e)
}
}
console.log('process.env', process.env)
if (!process.env) {
console.error('process.env is undefined')
}
return json({
env: {
BASE_URL: process.env.BASE_URL,
Expand Down
1 change: 1 addition & 0 deletions app/routes/infinite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export async function loader({ request, params }: LoaderArgs): Promise<TypedResp
}

export default function InfinitePage() {
console.log('rendering InfinitePage')
useAutoRefresh()
const data = useLoaderData<typeof loader>()

Expand Down

0 comments on commit f8b5ae5

Please sign in to comment.