- Changed TO_REPO from template/next-simple-template to template/router-studio in .cnb.yml. - Updated transpilePackages in next.config.ts to only include @kevisual/api. - Bumped version to 0.1.4 in package.json and updated deployment script. - Updated dependencies in package.json: - @kevisual/api from ^0.0.20 to ^0.0.44 - @kevisual/query from ^0.0.37 to ^0.0.39 - @kevisual/router from ^0.0.60 to ^0.0.69 - antd from ^6.2.1 to ^6.2.3 - lucide-react from ^0.562.0 to ^0.563.0 - next from 16.1.4 to 16.1.6 - react and react-dom from 19.2.3 to 19.2.4 - react-resizable-panels from ^4.4.1 to ^4.5.8 - zustand from ^5.0.10 to ^5.0.11 - @kevisual/types from ^0.0.11 to ^0.0.12 - Modified queryRouteList function to accept a parameter in index.tsx and store.ts. - Enhanced searchRoutes functionality to set searchKeyword in store.ts.
17 lines
465 B
TypeScript
17 lines
465 B
TypeScript
import type { NextConfig } from "next";
|
|
import pkgs from "./package.json";
|
|
|
|
const isDev = process.env.NODE_ENV !== "production";
|
|
console.log(`NODE_ENV: ${process.env.NODE_ENV}`);
|
|
const basePath = isDev ? "" : `${pkgs.basename}`;
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
output: isDev ? undefined : 'export',
|
|
distDir: 'dist',
|
|
basePath: basePath,
|
|
trailingSlash: true,
|
|
transpilePackages: ['@kevisual/api'],
|
|
};
|
|
|
|
export default nextConfig;
|