diff --git a/next.config.ts b/next.config.ts index a078179dc1505da1ca217944be9778e4193233fc..eb212accbe0821447ff02f0d5e5ab038db4f1207 100644 --- a/next.config.ts +++ b/next.config.ts @@ -5,20 +5,14 @@ const nextConfig: NextConfig = { typescript: { ignoreBuildErrors: true, }, - eslint: { - ignoreDuringBuilds: true, - }, reactStrictMode: false, - // HF Spaces reverse proxy terminates TLS — trust the upstream so cookies and absolute URLs work + // Allow running behind Hugging Face Spaces reverse proxy experimental: { - // Allow running behind Hugging Face Spaces reverse proxy serverActions: { allowedOrigins: ['*.hf.space', '*.space-z.ai'], }, }, - // Compress responses (HF Space reverse proxy may or may not gzip) compress: true, - // HF Space sets PORT env; respect it poweredByHeader: false, }; diff --git a/public/public/logo.svg b/public/logo.svg similarity index 100% rename from public/public/logo.svg rename to public/logo.svg diff --git a/public/public/robots.txt b/public/robots.txt similarity index 100% rename from public/public/robots.txt rename to public/robots.txt diff --git a/src/src/app/ai-chat/page.tsx b/src/app/ai-chat/page.tsx similarity index 100% rename from src/src/app/ai-chat/page.tsx rename to src/app/ai-chat/page.tsx diff --git a/src/src/app/api/ai-chat/route.ts b/src/app/api/ai-chat/route.ts similarity index 100% rename from src/src/app/api/ai-chat/route.ts rename to src/app/api/ai-chat/route.ts diff --git a/src/src/app/api/auth/route.ts b/src/app/api/auth/route.ts similarity index 100% rename from src/src/app/api/auth/route.ts rename to src/app/api/auth/route.ts diff --git a/src/src/app/api/cart/route.ts b/src/app/api/cart/route.ts similarity index 100% rename from src/src/app/api/cart/route.ts rename to src/app/api/cart/route.ts diff --git a/src/src/app/api/checkout/route.ts b/src/app/api/checkout/route.ts similarity index 100% rename from src/src/app/api/checkout/route.ts rename to src/app/api/checkout/route.ts diff --git a/src/src/app/api/cross-platform/route.ts b/src/app/api/cross-platform/route.ts similarity index 100% rename from src/src/app/api/cross-platform/route.ts rename to src/app/api/cross-platform/route.ts diff --git a/src/src/app/api/discover/route.ts b/src/app/api/discover/route.ts similarity index 100% rename from src/src/app/api/discover/route.ts rename to src/app/api/discover/route.ts diff --git a/src/src/app/api/group-buy/route.ts b/src/app/api/group-buy/route.ts similarity index 100% rename from src/src/app/api/group-buy/route.ts rename to src/app/api/group-buy/route.ts diff --git a/src/src/app/api/live/route.ts b/src/app/api/live/route.ts similarity index 100% rename from src/src/app/api/live/route.ts rename to src/app/api/live/route.ts diff --git a/src/src/app/api/orders/route.ts b/src/app/api/orders/route.ts similarity index 100% rename from src/src/app/api/orders/route.ts rename to src/app/api/orders/route.ts diff --git a/src/src/app/api/payment/route.ts b/src/app/api/payment/route.ts similarity index 100% rename from src/src/app/api/payment/route.ts rename to src/app/api/payment/route.ts diff --git a/src/src/app/api/products/route.ts b/src/app/api/products/route.ts similarity index 100% rename from src/src/app/api/products/route.ts rename to src/app/api/products/route.ts diff --git a/src/src/app/api/profile/route.ts b/src/app/api/profile/route.ts similarity index 100% rename from src/src/app/api/profile/route.ts rename to src/app/api/profile/route.ts diff --git a/src/src/app/api/reviews/route.ts b/src/app/api/reviews/route.ts similarity index 100% rename from src/src/app/api/reviews/route.ts rename to src/app/api/reviews/route.ts diff --git a/src/src/app/api/route.ts b/src/app/api/route.ts similarity index 100% rename from src/src/app/api/route.ts rename to src/app/api/route.ts diff --git a/src/src/app/api/seller-dashboard/route.ts b/src/app/api/seller-dashboard/route.ts similarity index 100% rename from src/src/app/api/seller-dashboard/route.ts rename to src/app/api/seller-dashboard/route.ts diff --git a/src/src/app/api/seller-orders/route.ts b/src/app/api/seller-orders/route.ts similarity index 100% rename from src/src/app/api/seller-orders/route.ts rename to src/app/api/seller-orders/route.ts diff --git a/src/src/app/api/seller-products/route.ts b/src/app/api/seller-products/route.ts similarity index 100% rename from src/src/app/api/seller-products/route.ts rename to src/app/api/seller-products/route.ts diff --git a/src/src/app/api/seller-profile/route.ts b/src/app/api/seller-profile/route.ts similarity index 100% rename from src/src/app/api/seller-profile/route.ts rename to src/app/api/seller-profile/route.ts diff --git a/src/src/app/api/social/route.ts b/src/app/api/social/route.ts similarity index 100% rename from src/src/app/api/social/route.ts rename to src/app/api/social/route.ts diff --git a/src/src/app/api/stories/route.ts b/src/app/api/stories/route.ts similarity index 100% rename from src/src/app/api/stories/route.ts rename to src/app/api/stories/route.ts diff --git a/src/src/app/api/telegram/route.ts b/src/app/api/telegram/route.ts similarity index 100% rename from src/src/app/api/telegram/route.ts rename to src/app/api/telegram/route.ts diff --git a/src/src/app/api/trending/route.ts b/src/app/api/trending/route.ts similarity index 100% rename from src/src/app/api/trending/route.ts rename to src/app/api/trending/route.ts diff --git a/src/src/app/api/videos/route.ts b/src/app/api/videos/route.ts similarity index 100% rename from src/src/app/api/videos/route.ts rename to src/app/api/videos/route.ts diff --git a/src/src/app/api/wishlist/route.ts b/src/app/api/wishlist/route.ts similarity index 100% rename from src/src/app/api/wishlist/route.ts rename to src/app/api/wishlist/route.ts diff --git a/src/src/app/cart/page.tsx b/src/app/cart/page.tsx similarity index 100% rename from src/src/app/cart/page.tsx rename to src/app/cart/page.tsx diff --git a/src/src/app/categories/page.tsx b/src/app/categories/page.tsx similarity index 100% rename from src/src/app/categories/page.tsx rename to src/app/categories/page.tsx diff --git a/src/src/app/checkout/page.tsx b/src/app/checkout/page.tsx similarity index 100% rename from src/src/app/checkout/page.tsx rename to src/app/checkout/page.tsx diff --git a/src/src/app/globals.css b/src/app/globals.css similarity index 100% rename from src/src/app/globals.css rename to src/app/globals.css diff --git a/src/src/app/group-buy/page.tsx b/src/app/group-buy/page.tsx similarity index 100% rename from src/src/app/group-buy/page.tsx rename to src/app/group-buy/page.tsx diff --git a/src/src/app/layout.tsx b/src/app/layout.tsx similarity index 100% rename from src/src/app/layout.tsx rename to src/app/layout.tsx diff --git a/src/src/app/link-account/page.tsx b/src/app/link-account/page.tsx similarity index 100% rename from src/src/app/link-account/page.tsx rename to src/app/link-account/page.tsx diff --git a/src/src/app/live-watch/page.tsx b/src/app/live-watch/page.tsx similarity index 100% rename from src/src/app/live-watch/page.tsx rename to src/app/live-watch/page.tsx diff --git a/src/src/app/live/page.tsx b/src/app/live/page.tsx similarity index 100% rename from src/src/app/live/page.tsx rename to src/app/live/page.tsx diff --git a/src/src/app/login/page.tsx b/src/app/login/page.tsx similarity index 100% rename from src/src/app/login/page.tsx rename to src/app/login/page.tsx diff --git a/src/src/app/orders/page.tsx b/src/app/orders/page.tsx similarity index 100% rename from src/src/app/orders/page.tsx rename to src/app/orders/page.tsx diff --git a/src/src/app/page.tsx b/src/app/page.tsx similarity index 100% rename from src/src/app/page.tsx rename to src/app/page.tsx diff --git a/src/src/app/payment/page.tsx b/src/app/payment/page.tsx similarity index 100% rename from src/src/app/payment/page.tsx rename to src/app/payment/page.tsx diff --git a/src/src/app/product/page.tsx b/src/app/product/page.tsx similarity index 100% rename from src/src/app/product/page.tsx rename to src/app/product/page.tsx diff --git a/src/src/app/profile/page.tsx b/src/app/profile/page.tsx similarity index 100% rename from src/src/app/profile/page.tsx rename to src/app/profile/page.tsx diff --git a/src/src/app/search/page.tsx b/src/app/search/page.tsx similarity index 100% rename from src/src/app/search/page.tsx rename to src/app/search/page.tsx diff --git a/src/src/app/seller-profile/page.tsx b/src/app/seller-profile/page.tsx similarity index 100% rename from src/src/app/seller-profile/page.tsx rename to src/app/seller-profile/page.tsx diff --git a/src/src/app/seller/go-live/page.tsx b/src/app/seller/go-live/page.tsx similarity index 100% rename from src/src/app/seller/go-live/page.tsx rename to src/app/seller/go-live/page.tsx diff --git a/src/src/app/seller/layout.tsx b/src/app/seller/layout.tsx similarity index 100% rename from src/src/app/seller/layout.tsx rename to src/app/seller/layout.tsx diff --git a/src/src/app/seller/orders/page.tsx b/src/app/seller/orders/page.tsx similarity index 100% rename from src/src/app/seller/orders/page.tsx rename to src/app/seller/orders/page.tsx diff --git a/src/src/app/seller/page.tsx b/src/app/seller/page.tsx similarity index 100% rename from src/src/app/seller/page.tsx rename to src/app/seller/page.tsx diff --git a/src/src/app/seller/products/page.tsx b/src/app/seller/products/page.tsx similarity index 100% rename from src/src/app/seller/products/page.tsx rename to src/app/seller/products/page.tsx diff --git a/src/src/app/seller/profile/page.tsx b/src/app/seller/profile/page.tsx similarity index 100% rename from src/src/app/seller/profile/page.tsx rename to src/app/seller/profile/page.tsx diff --git a/src/src/app/seller/stories/page.tsx b/src/app/seller/stories/page.tsx similarity index 100% rename from src/src/app/seller/stories/page.tsx rename to src/app/seller/stories/page.tsx diff --git a/src/src/app/seller/videos/page.tsx b/src/app/seller/videos/page.tsx similarity index 100% rename from src/src/app/seller/videos/page.tsx rename to src/app/seller/videos/page.tsx diff --git a/src/src/app/telegram/page.tsx b/src/app/telegram/page.tsx similarity index 100% rename from src/src/app/telegram/page.tsx rename to src/app/telegram/page.tsx diff --git a/src/src/app/videos/page.tsx b/src/app/videos/page.tsx similarity index 100% rename from src/src/app/videos/page.tsx rename to src/app/videos/page.tsx diff --git a/src/src/app/wishlist/page.tsx b/src/app/wishlist/page.tsx similarity index 100% rename from src/src/app/wishlist/page.tsx rename to src/app/wishlist/page.tsx diff --git a/src/src/components/auth-provider.tsx b/src/components/auth-provider.tsx similarity index 100% rename from src/src/components/auth-provider.tsx rename to src/components/auth-provider.tsx diff --git a/src/src/components/mobile-nav.tsx b/src/components/mobile-nav.tsx similarity index 100% rename from src/src/components/mobile-nav.tsx rename to src/components/mobile-nav.tsx diff --git a/src/src/components/navbar.tsx b/src/components/navbar.tsx similarity index 100% rename from src/src/components/navbar.tsx rename to src/components/navbar.tsx diff --git a/src/src/components/product-card.tsx b/src/components/product-card.tsx similarity index 100% rename from src/src/components/product-card.tsx rename to src/components/product-card.tsx diff --git a/src/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsx similarity index 100% rename from src/src/components/ui/accordion.tsx rename to src/components/ui/accordion.tsx diff --git a/src/src/components/ui/alert-dialog.tsx b/src/components/ui/alert-dialog.tsx similarity index 100% rename from src/src/components/ui/alert-dialog.tsx rename to src/components/ui/alert-dialog.tsx diff --git a/src/src/components/ui/alert.tsx b/src/components/ui/alert.tsx similarity index 100% rename from src/src/components/ui/alert.tsx rename to src/components/ui/alert.tsx diff --git a/src/src/components/ui/aspect-ratio.tsx b/src/components/ui/aspect-ratio.tsx similarity index 100% rename from src/src/components/ui/aspect-ratio.tsx rename to src/components/ui/aspect-ratio.tsx diff --git a/src/src/components/ui/avatar.tsx b/src/components/ui/avatar.tsx similarity index 100% rename from src/src/components/ui/avatar.tsx rename to src/components/ui/avatar.tsx diff --git a/src/src/components/ui/badge.tsx b/src/components/ui/badge.tsx similarity index 100% rename from src/src/components/ui/badge.tsx rename to src/components/ui/badge.tsx diff --git a/src/src/components/ui/breadcrumb.tsx b/src/components/ui/breadcrumb.tsx similarity index 100% rename from src/src/components/ui/breadcrumb.tsx rename to src/components/ui/breadcrumb.tsx diff --git a/src/src/components/ui/button.tsx b/src/components/ui/button.tsx similarity index 100% rename from src/src/components/ui/button.tsx rename to src/components/ui/button.tsx diff --git a/src/src/components/ui/calendar.tsx b/src/components/ui/calendar.tsx similarity index 100% rename from src/src/components/ui/calendar.tsx rename to src/components/ui/calendar.tsx diff --git a/src/src/components/ui/card.tsx b/src/components/ui/card.tsx similarity index 100% rename from src/src/components/ui/card.tsx rename to src/components/ui/card.tsx diff --git a/src/src/components/ui/carousel.tsx b/src/components/ui/carousel.tsx similarity index 100% rename from src/src/components/ui/carousel.tsx rename to src/components/ui/carousel.tsx diff --git a/src/src/components/ui/chart.tsx b/src/components/ui/chart.tsx similarity index 100% rename from src/src/components/ui/chart.tsx rename to src/components/ui/chart.tsx diff --git a/src/src/components/ui/checkbox.tsx b/src/components/ui/checkbox.tsx similarity index 100% rename from src/src/components/ui/checkbox.tsx rename to src/components/ui/checkbox.tsx diff --git a/src/src/components/ui/collapsible.tsx b/src/components/ui/collapsible.tsx similarity index 100% rename from src/src/components/ui/collapsible.tsx rename to src/components/ui/collapsible.tsx diff --git a/src/src/components/ui/command.tsx b/src/components/ui/command.tsx similarity index 100% rename from src/src/components/ui/command.tsx rename to src/components/ui/command.tsx diff --git a/src/src/components/ui/context-menu.tsx b/src/components/ui/context-menu.tsx similarity index 100% rename from src/src/components/ui/context-menu.tsx rename to src/components/ui/context-menu.tsx diff --git a/src/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx similarity index 100% rename from src/src/components/ui/dialog.tsx rename to src/components/ui/dialog.tsx diff --git a/src/src/components/ui/drawer.tsx b/src/components/ui/drawer.tsx similarity index 100% rename from src/src/components/ui/drawer.tsx rename to src/components/ui/drawer.tsx diff --git a/src/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx similarity index 100% rename from src/src/components/ui/dropdown-menu.tsx rename to src/components/ui/dropdown-menu.tsx diff --git a/src/src/components/ui/form.tsx b/src/components/ui/form.tsx similarity index 100% rename from src/src/components/ui/form.tsx rename to src/components/ui/form.tsx diff --git a/src/src/components/ui/hover-card.tsx b/src/components/ui/hover-card.tsx similarity index 100% rename from src/src/components/ui/hover-card.tsx rename to src/components/ui/hover-card.tsx diff --git a/src/src/components/ui/input-otp.tsx b/src/components/ui/input-otp.tsx similarity index 100% rename from src/src/components/ui/input-otp.tsx rename to src/components/ui/input-otp.tsx diff --git a/src/src/components/ui/input.tsx b/src/components/ui/input.tsx similarity index 100% rename from src/src/components/ui/input.tsx rename to src/components/ui/input.tsx diff --git a/src/src/components/ui/label.tsx b/src/components/ui/label.tsx similarity index 100% rename from src/src/components/ui/label.tsx rename to src/components/ui/label.tsx diff --git a/src/src/components/ui/menubar.tsx b/src/components/ui/menubar.tsx similarity index 100% rename from src/src/components/ui/menubar.tsx rename to src/components/ui/menubar.tsx diff --git a/src/src/components/ui/navigation-menu.tsx b/src/components/ui/navigation-menu.tsx similarity index 100% rename from src/src/components/ui/navigation-menu.tsx rename to src/components/ui/navigation-menu.tsx diff --git a/src/src/components/ui/pagination.tsx b/src/components/ui/pagination.tsx similarity index 100% rename from src/src/components/ui/pagination.tsx rename to src/components/ui/pagination.tsx diff --git a/src/src/components/ui/popover.tsx b/src/components/ui/popover.tsx similarity index 100% rename from src/src/components/ui/popover.tsx rename to src/components/ui/popover.tsx diff --git a/src/src/components/ui/progress.tsx b/src/components/ui/progress.tsx similarity index 100% rename from src/src/components/ui/progress.tsx rename to src/components/ui/progress.tsx diff --git a/src/src/components/ui/radio-group.tsx b/src/components/ui/radio-group.tsx similarity index 100% rename from src/src/components/ui/radio-group.tsx rename to src/components/ui/radio-group.tsx diff --git a/src/src/components/ui/resizable.tsx b/src/components/ui/resizable.tsx similarity index 100% rename from src/src/components/ui/resizable.tsx rename to src/components/ui/resizable.tsx diff --git a/src/src/components/ui/scroll-area.tsx b/src/components/ui/scroll-area.tsx similarity index 100% rename from src/src/components/ui/scroll-area.tsx rename to src/components/ui/scroll-area.tsx diff --git a/src/src/components/ui/select.tsx b/src/components/ui/select.tsx similarity index 100% rename from src/src/components/ui/select.tsx rename to src/components/ui/select.tsx diff --git a/src/src/components/ui/separator.tsx b/src/components/ui/separator.tsx similarity index 100% rename from src/src/components/ui/separator.tsx rename to src/components/ui/separator.tsx diff --git a/src/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx similarity index 100% rename from src/src/components/ui/sheet.tsx rename to src/components/ui/sheet.tsx diff --git a/src/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsx similarity index 100% rename from src/src/components/ui/sidebar.tsx rename to src/components/ui/sidebar.tsx diff --git a/src/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx similarity index 100% rename from src/src/components/ui/skeleton.tsx rename to src/components/ui/skeleton.tsx diff --git a/src/src/components/ui/slider.tsx b/src/components/ui/slider.tsx similarity index 100% rename from src/src/components/ui/slider.tsx rename to src/components/ui/slider.tsx diff --git a/src/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsx similarity index 100% rename from src/src/components/ui/sonner.tsx rename to src/components/ui/sonner.tsx diff --git a/src/src/components/ui/switch.tsx b/src/components/ui/switch.tsx similarity index 100% rename from src/src/components/ui/switch.tsx rename to src/components/ui/switch.tsx diff --git a/src/src/components/ui/table.tsx b/src/components/ui/table.tsx similarity index 100% rename from src/src/components/ui/table.tsx rename to src/components/ui/table.tsx diff --git a/src/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx similarity index 100% rename from src/src/components/ui/tabs.tsx rename to src/components/ui/tabs.tsx diff --git a/src/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx similarity index 100% rename from src/src/components/ui/textarea.tsx rename to src/components/ui/textarea.tsx diff --git a/src/src/components/ui/toast.tsx b/src/components/ui/toast.tsx similarity index 100% rename from src/src/components/ui/toast.tsx rename to src/components/ui/toast.tsx diff --git a/src/src/components/ui/toaster.tsx b/src/components/ui/toaster.tsx similarity index 100% rename from src/src/components/ui/toaster.tsx rename to src/components/ui/toaster.tsx diff --git a/src/src/components/ui/toggle-group.tsx b/src/components/ui/toggle-group.tsx similarity index 100% rename from src/src/components/ui/toggle-group.tsx rename to src/components/ui/toggle-group.tsx diff --git a/src/src/components/ui/toggle.tsx b/src/components/ui/toggle.tsx similarity index 100% rename from src/src/components/ui/toggle.tsx rename to src/components/ui/toggle.tsx diff --git a/src/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsx similarity index 100% rename from src/src/components/ui/tooltip.tsx rename to src/components/ui/tooltip.tsx diff --git a/src/src/hooks/use-mobile.ts b/src/hooks/use-mobile.ts similarity index 100% rename from src/src/hooks/use-mobile.ts rename to src/hooks/use-mobile.ts diff --git a/src/src/hooks/use-toast.ts b/src/hooks/use-toast.ts similarity index 100% rename from src/src/hooks/use-toast.ts rename to src/hooks/use-toast.ts diff --git a/src/src/lib/api.ts b/src/lib/api.ts similarity index 100% rename from src/src/lib/api.ts rename to src/lib/api.ts diff --git a/src/src/lib/db.ts b/src/lib/db.ts similarity index 100% rename from src/src/lib/db.ts rename to src/lib/db.ts diff --git a/src/src/lib/proxy.ts b/src/lib/proxy.ts similarity index 100% rename from src/src/lib/proxy.ts rename to src/lib/proxy.ts diff --git a/src/src/lib/utils.ts b/src/lib/utils.ts similarity index 100% rename from src/src/lib/utils.ts rename to src/lib/utils.ts