From 68d533912fd446d865515073bc68cd9fea444653 Mon Sep 17 00:00:00 2001 From: Lazaro Alonso Date: Mon, 2 Mar 2026 11:43:08 +0100 Subject: [PATCH] local prod fix --- next.config.ts | 2 +- src/components/ui/MainPanel/LocalNetCDF.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/next.config.ts b/next.config.ts index 77ce1cbd..b0843a61 100644 --- a/next.config.ts +++ b/next.config.ts @@ -4,7 +4,7 @@ import path from 'path'; const isProd = process.env.NODE_ENV === 'production'; const basePath = isProd ? (process.env.BASE_PATH || '') : ''; // const targetFolder = process.env.TARGET_FOLDER || ''; -const assetPrefix = isProd ? (basePath ? `${basePath.replace(/\/$/, '')}/` : './') : ''; +const assetPrefix = isProd ? (basePath ? `${basePath.replace(/\/$/, '')}/` : '') : ''; /** @type {import('next').NextConfig} */ const nextConfig = { diff --git a/src/components/ui/MainPanel/LocalNetCDF.tsx b/src/components/ui/MainPanel/LocalNetCDF.tsx index 4da3c9bc..733c3f22 100644 --- a/src/components/ui/MainPanel/LocalNetCDF.tsx +++ b/src/components/ui/MainPanel/LocalNetCDF.tsx @@ -45,7 +45,7 @@ const LocalNetCDF = ({ setOpenVariables}:LocalNCType) => { data.getFullMetadata() ]) useGlobalStore.setState({variables: Object.keys(variables), zMeta: metadata, initStore:`local_${file.name}`}) - useZarrStore.setState({useNC: true, ncModule: data}) + useZarrStore.setState({ fetchNC:true, useNC: true, ncModule: data}) const titleDescription = { title: attrs.title?? file.name, description: attrs.history?? ''