Skip to content

Commit

Permalink
Merge pull request #938 from prezly/feature/dev-19230-use-jwt-to-prov…
Browse files Browse the repository at this point in the history
…ide-preview-theme-settings-for-the-bea-theme

[DEV-19230] Do not parse preview search params in preview mode
  • Loading branch information
camilb authored Jan 21, 2025
2 parents 8980eee + bf1fb89 commit 8573740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hooks/useThemeSettings/useThemeSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function useThemeSettings(): ThemeSettings {
const settings: ThemeSettingsApiResponse = {
...DEFAULT_THEME_SETTINGS,
...themePreset?.settings,
...previewSettings,
...(process.env.PREZLY_MODE === 'preview' ? previewSettings : undefined),
};

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

0 comments on commit 8573740

Please sign in to comment.