Rename utils to lib (#29651)

Rename all instances of `utils` to `lib` in this example to maintain consistency with other examples.
This commit is contained in:
Aryan Beezadhur 2021-10-05 21:24:19 +01:00 committed by GitHub
parent aeafca2b64
commit 8eec49208f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
import { Auth } from '@supabase/ui'
import { supabase } from '../utils/initSupabase'
import { supabase } from '../lib/initSupabase'
import './../style.css'
export default function MyApp({ Component, pageProps }) {

View file

@ -1,7 +1,7 @@
/**
* NOTE: this file is only needed if you're doing SSR (getServerSideProps)!
*/
import { supabase } from '../../utils/initSupabase'
import { supabase } from '../../lib/initSupabase'
export default function handler(req, res) {
supabase.auth.api.setAuthCookie(req, res)

View file

@ -1,4 +1,4 @@
import { supabase } from '../../utils/initSupabase'
import { supabase } from '../../lib/initSupabase'
// Example of how to verify and get user data server-side.
const getUser = async (req, res) => {

View file

@ -1,7 +1,7 @@
import Link from 'next/link'
import useSWR from 'swr'
import { Auth, Card, Typography, Space, Button, Icon } from '@supabase/ui'
import { supabase } from '../utils/initSupabase'
import { supabase } from '../lib/initSupabase'
import { useEffect, useState } from 'react'
const fetcher = (url, token) =>

View file

@ -1,6 +1,6 @@
import Link from 'next/link'
import { Card, Typography, Space } from '@supabase/ui'
import { supabase } from '../utils/initSupabase'
import { supabase } from '../lib/initSupabase'
export default function Profile({ user }) {
return (