mirror of
https://github.com/hanzoui/ci-dashboard.git
synced 2026-10-30 19:47:45 +00:00
* 🔧 build: Update configuration and dependencies for modern ES support - Add new bun.lockb file for dependency locking. - Update next.config.js to use ES module imports and exports: - Replace `require` with `import` for '@next/mdx'. - Change module.exports to `export default`. - Rename configuration files for better consistency: - Rename postcss.config.js to postcss.config.cjs. - Rename tailwind.config.js to tailwind.config.cjs. - Modify package.json: - Change project name from "kana" to "comfyci-dashboard". - Update "type" from "commonjs" to "module". - Bump react-toastify version from "^9.0.8" to "^10.0.5". - Update tsconfig.json: - Change "target" from "es6" to "ESNext" for improved TypeScript support. These changes modernize the project setup for better ES module support, enhance module consistency, and ensure compatibility with latest package versions. * ⬆️ chore: Upgrade react-toastify and clsx dependencies - Upgrade `react-toastify` from version 9.1.3 to 10.0.5 to ensure compatibility with the latest version of `react` and `react-dom` (>=18). - Update `clsx` from version 1.2.1 to 2.1.1 to align with the latest package improvements and to remove the older version from the dependency tree. - Modify `pnpm-lock.yaml` to reflect these changes and ensure overall dependency consistency.
37 lines
1002 B
JavaScript
37 lines
1002 B
JavaScript
import mdx from '@next/mdx'
|
|
// const withMDX = (await import("@next/mdx")).default({
|
|
const withMDX = mdx({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
remarkPlugins: [],
|
|
rehypePlugins: [],
|
|
// If you use `MDXProvider`, uncomment the following line.
|
|
providerImportSource: '@mdx-js/react',
|
|
},
|
|
})
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const conf = {
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
// Append the default value with md extensions
|
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
|
images: {
|
|
unoptimized: true,
|
|
domains: [
|
|
// user avatar
|
|
'avatars.githubusercontent.com',
|
|
// image
|
|
'firebasestorage.googleapis.com',
|
|
'storage.googleapis.com',
|
|
'via.placeholder.com',
|
|
],
|
|
},
|
|
webpack: (config) => {
|
|
config.experiments.topLevelAwait = true
|
|
return config
|
|
},
|
|
}
|
|
export default withMDX(conf)
|
|
// module.exports = withMDX(conf)
|