Skip to content

Commit

Permalink
panel bear added
Browse files Browse the repository at this point in the history
  • Loading branch information
thevahidal committed Nov 24, 2022
1 parent fd3118e commit 93f5d2e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
NEXT_PUBLIC_SUPABASE_ANON_KEY=

NEXT_PUBLIC_PANEL_BEAR_ID=
31 changes: 31 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@panelbear/panelbear-nextjs": "^1.0.5",
"@supabase/auth-helpers-nextjs": "^0.5.2",
"@supabase/auth-helpers-react": "^0.3.1",
"@supabase/auth-ui-react": "^0.2.6",
Expand Down
2 changes: 2 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import React, { useState } from 'react';
import { createBrowserSupabaseClient } from '@supabase/auth-helpers-nextjs';
import { SessionContextProvider } from '@supabase/auth-helpers-react';
import { usePanelbear } from '@panelbear/panelbear-nextjs';

import Layout from '../components/Layout';
import '../styles/globals.css';

function MyApp({ Component, pageProps }) {
const [supabase] = useState(() => createBrowserSupabaseClient());
usePanelbear(process.env.NEXT_PUBLIC_PANEL_BEAR_ID);

return (
<SessionContextProvider
Expand Down
1 change: 0 additions & 1 deletion pages/api/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default async (req, res) => {
})
.limit(1)
.single();
console.log({ data });

res.status(status).json({ data, error });
} else if (req.method === 'GET') {
Expand Down

0 comments on commit 93f5d2e

Please sign in to comment.