File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,7 @@ import { Enums } from "@repo/database/types.gen";
77import { DISCOURSE_CONFIG_PAGE_TITLE } from "~/utils/renderNodeConfigPage" ;
88import getBlockProps from "~/utils/getBlockProps" ;
99import setBlockProps from "~/utils/setBlockProps" ;
10- import {
11- createClient ,
12- type DGSupabaseClient ,
13- } from "@repo/ui/lib/supabase/client" ;
14- import { spaceAnonUserEmail } from "@repo/ui/lib/utils" ;
10+ import { type DGSupabaseClient } from "@repo/ui/lib/supabase/client" ;
1511import {
1612 fetchOrCreateSpaceId ,
1713 fetchOrCreatePlatformAccount ,
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import {
77
88type Platform = Enums < "Platform" > ;
99
10- const base_url = nextApiRoot ( ) + "/supabase" ;
10+ const baseUrl = nextApiRoot ( ) + "/supabase" ;
1111
1212export const fetchOrCreateSpaceId = async ( data : {
1313 password : string ;
1414 url : string ;
1515 name : string ;
1616 platform : Platform ;
1717} ) : Promise < number > => {
18- const response = await fetch ( base_url + "/space" , {
18+ const response = await fetch ( baseUrl + "/space" , {
1919 method : "POST" ,
2020 headers : {
2121 "Content-Type" : "application/json" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export function cn(...inputs: ClassValue[]) {
1010export const spaceAnonUserEmail = ( platform : string , space_id : number ) =>
1111 `${ platform . toLowerCase ( ) } -${ space_id } -anon@database.discoursegraphs.com` ;
1212
13- export const IS_DEV = process . env . NODE_ENV !== "production" ;
13+ const IS_DEV = process . env . NODE_ENV !== "production" ;
1414
1515export const nextApiRoot = ( ) : string => {
1616 if (
You can’t perform that action at this time.
0 commit comments