Skip to content

Commit

Permalink
Merge pull request #2233 from iFixit/ship-app-router-store-home-page
Browse files Browse the repository at this point in the history
Ship app router store home page
  • Loading branch information
deltuh-vee authored Feb 7, 2024
2 parents 4cc92d1 + 5e2ac9a commit b03bb50
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 256 deletions.
2 changes: 1 addition & 1 deletion frontend/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ NEXT_PUBLIC_ALGOLIA_PRODUCT_INDEX_NAME=dev_product_group_en
NEXT_PUBLIC_DEFAULT_STORE_CODE=test

# Flags
NEXT_PUBLIC_FLAG__STORE_PAGES_APP_ROUTER_ENABLED=true
# NEXT_PUBLIC_FLAG__STORE_PAGES_APP_ROUTER_ENABLED=true
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { QuoteGallerySection } from '@components/sections/QuoteGallerySection';
import { SocialGallerySection } from '@components/sections/SocialGallerySection';
import { SplitWithImageContentSection } from '@components/sections/SplitWithImageSection';
import { IFIXIT_ORIGIN } from '@config/env';
import { flags } from '@config/flags';
import { ensureIFixitSuffix } from '@helpers/metadata-helpers';
import { joinPaths } from '@helpers/path-helpers';
import { assertNever, invariant } from '@ifixit/helpers';
Expand All @@ -26,8 +25,6 @@ export interface StorePageProps {
}

export default async function StorePage({ params }: StorePageProps) {
if (!flags.STORE_PAGES_APP_ROUTER_ENABLED) notFound();

const page = await findPageByPath(pathFor(params.slug));

if (page == null) notFound();
Expand Down
4 changes: 2 additions & 2 deletions frontend/config/flags.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const flags = {
STORE_PAGES_APP_ROUTER_ENABLED:
process.env.NEXT_PUBLIC_FLAG__STORE_PAGES_APP_ROUTER_ENABLED === 'true',
// STORE_PAGES_APP_ROUTER_ENABLED:
// process.env.NEXT_PUBLIC_FLAG__STORE_PAGES_APP_ROUTER_ENABLED === 'true',
};
2 changes: 0 additions & 2 deletions frontend/pages/Store.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/pages/Store/[...slug].tsx

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/templates/page/hooks/usePageTemplateProps.ts

This file was deleted.

128 changes: 0 additions & 128 deletions frontend/templates/page/index.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions frontend/templates/page/meta-tags.tsx

This file was deleted.

42 changes: 0 additions & 42 deletions frontend/templates/page/server.tsx

This file was deleted.

0 comments on commit b03bb50

Please sign in to comment.