Skip to content

Commit

Permalink
next config
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Oct 12, 2023
1 parent 65e707e commit 4aa30bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
16 changes: 8 additions & 8 deletions libs/orchestra/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ export function Orchestra({ children }) {
)
}

export function OrchestraToggle({ icon, title, id, defaultValue = false }) {
useEffect(() => {
useOrchestraStore.setState((state) => {
const clone = { ...state }
clone[id] = defaultValue
return clone
})
}, [defaultValue])
export function OrchestraToggle({ icon, title, id }) {
// useEffect(() => {
// useOrchestraStore.setState((state) => {
// const clone = { ...state }
// clone[id] = defaultValue
// return clone
// })
// }, [defaultValue])

return (
<button
Expand Down
5 changes: 1 addition & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ const nextConfig = {
transpilePackages: ['@studio-freight/compono'],
experimental: {
optimizeCss: true,
legacyBrowsers: false,
// storyblok preview
nextScriptWorkers: process.env.NODE_ENV !== 'development',
urlImports: ['https://cdn.skypack.dev', 'https://unpkg.com'],
nextScriptWorkers: true,
},
compiler: {
removeConsole: process.env.NODE_ENV !== 'development',
Expand Down

1 comment on commit 4aa30bc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"⚡️ Lighthouse report for the changes in this commit:

🟠 Performance: 68
🟢 Accessibility: 97
🟢 Best practices: 92
🟠 SEO: 75
🟢 PWA: 90

Lighthouse ran on https://satus-euihmw5tt-studio-freight.vercel.app/"

Please sign in to comment.