From 095db220c10cf19720ae88d74147f1c41ddab44a Mon Sep 17 00:00:00 2001 From: Joshua Park <123624726+joshprk@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:32:27 -0400 Subject: [PATCH] Fixed hardcoded URL to AIOS chat on local environments (#287) * Fixed hardcoded URL to AIOS chat on local environments * Preliminary attempt to fix no-mention chat * Revert "Preliminary attempt to fix no-mention chat" This reverts commit 5a8c0606c8694e7220ec41995f4eaaf17e1d5cc1. --- agenthub/components/homepage/Products.tsx | 153 +--------------------- 1 file changed, 4 insertions(+), 149 deletions(-) diff --git a/agenthub/components/homepage/Products.tsx b/agenthub/components/homepage/Products.tsx index acb188d3..b0093376 100644 --- a/agenthub/components/homepage/Products.tsx +++ b/agenthub/components/homepage/Products.tsx @@ -4,6 +4,7 @@ import { Link } from '@nextui-org/react' import SectionContainer from './SectionContainer' import ExampleCard from './ExampleCard' +const isDevEnv = process.env.NODE_ENV == "development" const Examples = [ { @@ -33,157 +34,11 @@ const Examples = [ author_url: 'https://github.com/supabase', author_img: 'https://avatars.githubusercontent.com/u/54469796', repo_name: 'vercel/next.js/examples/with-supabase', - repo_url: 'https://my.aios.foundation/chat', + repo_url: (isDevEnv ? 'http://localhost:3000/chat' : 'https://my.aios.foundation/chat'), vercel_deploy_url: 'https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js%2Ftree%2Fcanary%2Fexamples%2Fwith-supabase&project-name=nextjs-with-supabase&repository-name=nextjs-with-supabase&demo-title=nextjs-with-supabase&demo-description=This%20starter%20configures%20Supabase%20Auth%20to%20use%20cookies%2C%20making%20the%20user%27s%20session%20available%20throughout%20the%20entire%20Next.js%20app%20-%20Client%20Components%2C%20Server%20Components%2C%20Route%20Handlers%2C%20Server%20Actions%20and%20Middleware.&demo-url=https%3A%2F%2Fdemo-nextjs-with-supabase.vercel.app%2F&external-id=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js%2Ftree%2Fcanary%2Fexamples%2Fwith-supabase&demo-image=https%3A%2F%2Fdemo-nextjs-with-supabase.vercel.app%2Fopengraph-image.png&integration-ids=oac_VqOgBHqhEoFTPzGkPd7L0iH6', demo_url: 'https://demo-nextjs-with-supabase.vercel.app/', - }, - { - type: 'example', - tags: ['Next.js', 'OpenAI', 'Vercel'], - products: [], - title: 'AI Chatbot', - description: - 'An open-source AI chatbot app template built with Next.js, the Vercel AI SDK, OpenAI, and Supabase.', - author: 'Supabase', - author_url: 'https://github.com/supabase', - author_img: 'https://avatars.githubusercontent.com/u/54469796', - repo_name: 'supabase-community/vercel-ai-chatbot', - repo_url: 'https://github.com/supabase-community/vercel-ai-chatbot', - vercel_deploy_url: - 'https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fsupabase-community%2Fvercel-ai-chatbot&env=OPENAI_API_KEY&envDescription=You%20must%20first%20activate%20a%20Billing%20Account%20here%3A%20https%3A%2F%2Fplatform.openai.com%2Faccount%2Fbilling%2Foverview&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=vercel-ai-chatbot-with-supabase&repository-name=vercel-ai-chatbot-with-supabase&integration-ids=oac_VqOgBHqhEoFTPzGkPd7L0iH6&external-id=https%3A%2F%2Fgithub.com%2Fsupabase-community%2Fvercel-ai-chatbot%2Ftree%2Fmain', - demo_url: '', - }, - { - type: 'example', - tags: ['LangChain', 'Next.js'], - products: [], - title: 'LangChain + Next.js Starter', - description: - 'Starter template and example use-cases for LangChain projects in Next.js, including chat, agents, and retrieval.', - author: 'Supabase', - author_url: 'https://github.com/supabase', - author_img: 'https://avatars.githubusercontent.com/u/54469796', - repo_name: 'langchain-ai/langchain-nextjs-template', - repo_url: 'https://github.com/langchain-ai/langchain-nextjs-template', - vercel_deploy_url: - 'https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flangchain-ai%2Flangchain-nextjs-template', - demo_url: 'https://langchain-nextjs-template.vercel.app/', - }, - { - type: 'example', - tags: ['Flutter'], - products: [], - title: 'Flutter User Management', - description: - 'Get started with Supabase and Flutter by building a user management app with auth, file storage, and database.', - author: 'Supabase Community', - author_url: 'https://github.com/supabase-community', - author_img: 'https://avatars.githubusercontent.com/u/87650496', - repo_name: 'supabase/examples/user-management/flutter-user-management', - repo_url: - 'https://github.com/supabase/supabase/tree/master/examples/user-management/flutter-user-management', - vercel_deploy_url: '', - demo_url: '', - }, - { - type: 'example', - tags: ['Expo'], - products: [], - title: 'Expo React Native Starter', - description: - 'An extended version of create-t3-turbo implementing authentication on both the web and mobile applications.', - author: 'Supabase Community', - author_url: 'https://github.com/supabase-community', - author_img: 'https://avatars.githubusercontent.com/u/87650496', - repo_name: 'supabase-community/create-t3-turbo', - repo_url: 'https://github.com/supabase-community/create-t3-turbo', - vercel_deploy_url: '', - demo_url: 'https://create-t3-turbo.vercel.app/', - }, - { - type: 'example', - tags: ['Svelte'], - products: [], - title: 'Svelte kanban board', - description: 'A Trello clone using Supabase as the storage system.', - author: 'joshnuss', - author_url: 'https://github.com/joshnuss', - author_img: 'https://avatars.githubusercontent.com/u/4437', - repo_name: 'supabase-kanban', - repo_url: 'https://github.com/joshnuss/supabase-kanban', - vercel_deploy_url: '', - demo_url: 'https://supabase-kanban.vercel.app/', - }, - { - type: 'example', - tags: ['Next.js'], - products: [], - title: 'Next.js Realtime chat app', - description: 'Next.js Slack clone app using Supabase realtime subscriptions', - author: 'supabase', - author_url: 'https://github.com/supabase', - author_img: 'https://avatars.githubusercontent.com/u/54469796', - repo_name: 'nextjs-slack-clone', - repo_url: - 'https://github.com/supabase/supabase/tree/master/examples/slack-clone/nextjs-slack-clone', - vercel_deploy_url: '', - demo_url: '', - }, - { - type: 'example', - tags: ['Next.js'], - products: [], - title: 'Next.js Subscription and Auth', - description: 'The all-in-one starter kit for high-performance SaaS applications.', - author: 'Vercel', - author_url: 'https://github.com/vercel', - author_img: 'https://avatars.githubusercontent.com/u/14985020', - repo_name: 'nextjs-subscription-payments', - repo_url: 'https://github.com/vercel/nextjs-subscription-payments', - vercel_deploy_url: - 'https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnextjs-subscription-payments&env=NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY,STRIPE_SECRET_KEY&envDescription=Enter%20your%20Stripe%20API%20keys.&envLink=https%3A%2F%2Fdashboard.stripe.com%2Fapikeys&project-name=nextjs-subscription-payments&repository-name=nextjs-subscription-payments&integration-ids=oac_VqOgBHqhEoFTPzGkPd7L0iH6&external-id=https%3A%2F%2Fgithub.com%2Fvercel%2Fnextjs-subscription-payments%2Ftree%2Fmain', - demo_url: 'https://subscription-payments.vercel.app/', - }, - { - type: 'example', - tags: ['Expo', 'React'], - products: [], - title: 'Expo React Native Starter', - description: 'Template bottom tabs with auth flow (Typescript)', - author: 'codingki', - author_url: 'https://github.com/codingki', - author_img: 'https://avatars.githubusercontent.com/u/39829726', - repo_name: 'react-native-expo-template', - repo_url: - 'https://github.com/codingki/react-native-expo-template/tree/master/template-typescript-bottom-tabs-supabase-auth-flow', - vercel_deploy_url: '', - demo_url: '', - }, - { - type: 'example', - tags: ['NestJs'], - products: [], - title: 'NestJS example', - description: 'NestJS example using Supabase Auth', - author: 'hiro1107', - author_url: 'https://github.com/hiro1107', - author_img: 'https://avatars.githubusercontent.com/u/1423067', - repo_name: 'nestjs-supabase-auth', - repo_url: 'https://github.com/hiro1107/nestjs-supabase-auth', - vercel_deploy_url: '', - demo_url: '', - }, - - // { - // type: 'example', - // tags: ['Supabase'], - // products: [PRODUCT_NAMES.FUNCTIONS], - // title: 'With supabase-js', - // description: 'Use the Supabase client inside your Edge Function.', - // repo_url: 'https://supabase.com/docs/guides/functions/auth', - // }, - + } ] const BuiltWithSupabase = () => { @@ -212,4 +67,4 @@ const BuiltWithSupabase = () => { ) } -export default BuiltWithSupabase \ No newline at end of file +export default BuiltWithSupabase