Skip to content

Commit

Permalink
refactor(store pages): Remove feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dhmacs committed Feb 7, 2024
1 parent a3d8e03 commit 5e2ac9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 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
3 changes: 0 additions & 3 deletions frontend/app/(defaultLayout)/Store/[[...slug]]/page.tsx
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',
};

0 comments on commit 5e2ac9a

Please sign in to comment.