- Implemented EnvPage component for managing environment variables. - Added functionality to load, add, remove, and update environment variables. - Included validation for empty and duplicate keys. - Implemented import/export features for environment variables in JSON format. - Integrated autocompletion for environment variable keys based on predefined config. feat: create user profile management with edit and password change modals - Developed ProfileCard component to display user information. - Added EditProfileModal for updating user details. - Implemented ChangePasswordModal for password modification. - Integrated user data fetching and state management using Zustand. feat: establish user store for managing user state and actions - Created user store with Zustand for managing user profile state. - Added actions for updating user information and handling loading states. feat: implement login store for user authentication - Developed login store for managing login state and actions. - Added functionality for user login and registration with error handling. feat: create reusable UI components for input groups and comboboxes - Developed InputGroup and related components for enhanced input handling. - Created Combobox component for improved selection functionality. - Added Badge component for displaying contextual information.
20 lines
529 B
TypeScript
20 lines
529 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', "@kevisual/use-config"],
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|