File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 22.venv
33.tinyb
44.tmp
5+ .tb_error *
6+ tinybird /fixtures
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export async function GET(request: Request) {
88 return NextResponse . json ( { error : 'Token is required' } , { status : 400 } ) ;
99 }
1010
11- const response = await fetch ( 'https://api.tinybird.co /v0/datasources' , {
11+ const response = await fetch ( ` ${ process . env . NEXT_PUBLIC_TINYBIRD_API_HOST } /v0/datasources` , {
1212 headers : {
1313 'Authorization' : `Bearer ${ token } ` ,
1414 } ,
Original file line number Diff line number Diff line change 11import { NextRequest , NextResponse } from "next/server" ;
22
3- const TINYBIRD_API_URL = "https://api.tinybird.co /v0/pipes" ;
3+ const TINYBIRD_API_URL = ` ${ process . env . NEXT_PUBLIC_TINYBIRD_API_HOST } /v0/pipes` ;
44
55export async function GET ( request : NextRequest ) {
66 const searchParams = request . nextUrl . searchParams ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export async function GET(request: Request) {
99 return NextResponse . json ( { error : 'Token and query are required' } , { status : 400 } ) ;
1010 }
1111
12- const url = new URL ( 'https://api.tinybird.co /v0/sql' ) ;
12+ const url = new URL ( ` ${ process . env . NEXT_PUBLIC_TINYBIRD_API_HOST } /v0/sql` ) ;
1313 url . searchParams . set ( 'q' , query ) ;
1414
1515 const response = await fetch ( url . toString ( ) , {
You can’t perform that action at this time.
0 commit comments