This repository was archived by the owner on Apr 19, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET ( ) {
5- const { data, error } = await supabaseAdmin . storage
5+ const supabase = await createClient ( ) ;
6+ const { data, error } = await supabase . storage
67 . from ( "sitemaps" )
78 . download ( "movies/index.xml.gz" ) ;
89
Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET (
55 _ : Request ,
66 { params } : { params : Promise < { id : string } > }
77) {
8+ const supabase = await createClient ( ) ;
89 const { id } = await params ;
9- const { data, error } = await supabaseAdmin . storage
10+ const { data, error } = await supabase . storage
1011 . from ( "sitemaps" )
1112 . download ( `movies/${ id } .xml.gz` ) ;
1213 if ( error || ! data ) {
Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET ( ) {
5- const { data, error } = await supabaseAdmin . storage
5+ const supabase = await createClient ( ) ;
6+ const { data, error } = await supabase . storage
67 . from ( "sitemaps" )
78 . download ( "playlists/index.xml.gz" ) ;
89
Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET (
55 _ : Request ,
66 { params } : { params : Promise < { id : string } > }
77) {
8+ const supabase = await createClient ( ) ;
89 const { id } = await params ;
9- const { data, error } = await supabaseAdmin . storage
10+ const { data, error } = await supabase . storage
1011 . from ( "sitemaps" )
1112 . download ( `playlists/${ id } .xml.gz` ) ;
1213 if ( error || ! data ) {
Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET ( ) {
5- const { data, error } = await supabaseAdmin . storage
5+ const supabase = await createClient ( ) ;
6+ const { data, error } = await supabase . storage
67 . from ( "sitemaps" )
78 . download ( "reviews/index.xml.gz" ) ;
89
Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET (
55 _ : Request ,
66 { params } : { params : Promise < { id : string } > }
77) {
8+ const supabase = await createClient ( ) ;
89 const { id } = await params ;
9- const { data, error } = await supabaseAdmin . storage
10+ const { data, error } = await supabase . storage
1011 . from ( "sitemaps" )
1112 . download ( `reviews/movie/${ id } .xml.gz` ) ;
1213 if ( error || ! data ) {
Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET (
55 _ : Request ,
66 { params } : { params : Promise < { id : string } > }
77) {
8+ const supabase = await createClient ( ) ;
89 const { id } = await params ;
9- const { data, error } = await supabaseAdmin . storage
10+ const { data, error } = await supabase . storage
1011 . from ( "sitemaps" )
1112 . download ( `reviews/tv-series/${ id } .xml.gz` ) ;
1213 if ( error || ! data ) {
Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET ( ) {
5- const { data, error } = await supabaseAdmin . storage
5+ const supabase = await createClient ( ) ;
6+ const { data, error } = await supabase . storage
67 . from ( "sitemaps" )
78 . download ( "tv-series/index.xml.gz" ) ;
89
Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET (
55 _ : Request ,
66 { params } : { params : Promise < { id : string } > }
77) {
8+ const supabase = await createClient ( ) ;
89 const { id } = await params ;
9- const { data, error } = await supabaseAdmin . storage
10+ const { data, error } = await supabase . storage
1011 . from ( "sitemaps" )
1112 . download ( `tv-series/${ id } .xml.gz` ) ;
1213 if ( error || ! data ) {
Original file line number Diff line number Diff line change 1- import { supabaseAdmin } from "@/lib/supabase/supabase-admin " ;
1+ import { createClient } from "@/lib/supabase/server-no-cookie " ;
22import { NextResponse } from "next/server" ;
33
44export async function GET ( ) {
5- const { data, error } = await supabaseAdmin . storage
5+ const supabase = await createClient ( ) ;
6+ const { data, error } = await supabase . storage
67 . from ( "sitemaps" )
78 . download ( "users/index.xml.gz" ) ;
89
You can’t perform that action at this time.
0 commit comments