From 2feb2fd5335b1951446cd7b3a385dc722cba4303 Mon Sep 17 00:00:00 2001 From: keting lu Date: Sun, 9 Mar 2025 12:24:06 +0800 Subject: [PATCH] test: add basePath and assetPrefix --- web/next.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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