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?? ''