This refine project was generated with superplate.
refine is a React-based framework for building data-intensive applications in no time ✨
Refine offers lots of out-of-the box functionality for rapid development, without compromising extreme customizability. Use-cases include, but are not limited to admin panels, B2B applications and dashboards.
npm run devnpm run buildnpm run startTo learn more about refine, please check out the Documentation
You need to create a .env file in the root directory of the project and add the following environment variables.
NEXT_PUBLIC_SUPABASE_URL=YOUR_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_KEY=YOUR_SUPABASE_ANON_KEY
PROJECT_REF=YOUR_SUPABASE_PROJECT_REFAlso, you can use the following command to create a .env file from .env.example.
cp .env.example .envTo generate types for your Supabase tables, you can use the following command. When you run this command, it will create a supabase.ts file in the src/types folder. Also, you need to set the PROJECT_REF environment variable in the .env file.
npm run generate:typesYou can define types for your tables in a file by importing the Database type from the supabase.ts file.
// src/types/index.ts
import { Database } from "./supabase";
type Team = Database["public"]["Tables"]["teams"]["Row"];MIT