diff --git a/web/next.config.js b/web/next.config.js index bfcd0a29e9..342ec2ebc6 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -14,8 +14,9 @@ const withMDX = require('@next/mdx')({ /** @type {import('next').NextConfig} */ const nextConfig = { - // basePath: '/dify', - // assetPrefix: '/dify', + basePath: '/dify', + assetPrefix: '/dify', + trailingSlash: true, webpack: (config, { dev, isServer }) => { config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' })) return config