diff --git a/micro-service/src/app/layout.tsx b/micro-service/src/app/layout.tsx index fb59fb6d..bb61aa1c 100644 --- a/micro-service/src/app/layout.tsx +++ b/micro-service/src/app/layout.tsx @@ -1,8 +1,8 @@ import type { Metadata } from 'next'; export const metadata: Metadata = { - title: 'React App', - description: 'Web site created with Next.js.', + title: 'Apollos Embeds', + description: 'Apollos Web Embeds', }; export default function RootLayout({ children }: { children: React.ReactNode }) { diff --git a/micro-service/src/utils/index.js b/micro-service/src/utils/index.js index 8c0df113..6c662da7 100644 --- a/micro-service/src/utils/index.js +++ b/micro-service/src/utils/index.js @@ -1,12 +1,11 @@ export const getChurchSlug = (host) => { - return 'cedar_creek'; let subdomain = process.env.NODE_ENV === 'production' ? host.split('.').slice(0, -2).join('.') : host.split('.').slice(0, -1).join('.'); if (process.env.NODE_ENV !== 'production' && !subdomain) { - subdomain = 'cedar-creek'; + subdomain = 'apollos-demo'; } return subdomain.replace(/-/g, '_'); }; diff --git a/packages/web-shared/embeds/FeatureFeed.js b/packages/web-shared/embeds/FeatureFeed.js index 19546897..09128f04 100644 --- a/packages/web-shared/embeds/FeatureFeed.js +++ b/packages/web-shared/embeds/FeatureFeed.js @@ -18,7 +18,7 @@ import { getComponentFromType } from '../utils/getContentFromURL'; function RenderFeatures(props) { const [searchParams] = useSearchParams(); - let _id = searchParams.get('id'); + const _id = searchParams.get('id'); const { type, randomId } = parseSlugToIdAndType(_id) ?? {}; @@ -66,14 +66,13 @@ const FeatureFeed = (props) => { itemId: props.featureFeed, }, }} - featureFeed={props.featureFeed} {...props} /> ) : ( <> - + )} diff --git a/packages/web-shared/providers/index.js b/packages/web-shared/providers/index.js index 7c3c8abd..f842666d 100644 --- a/packages/web-shared/providers/index.js +++ b/packages/web-shared/providers/index.js @@ -7,11 +7,6 @@ import FeatureFeedProvider from './FeatureFeedProvider'; import ModalProvider from './ModalProvider'; import SearchProvider from './SearchProvider'; import { createBrowserRouter, RouterProvider } from 'react-router-dom'; -import { - StaticRouterProvider, - createStaticRouter, - createStaticHandler, -} from 'react-router-dom/server'; export { AppProvider, @@ -24,7 +19,4 @@ export { SearchProvider, createBrowserRouter, RouterProvider, - StaticRouterProvider, - createStaticRouter, - createStaticHandler, };