SSR exportStatic 模式,Deploy到Netlify后404页面功能没有出来 #6790
Unanswered
antaiSlasify
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在本机端输入http://localhost:8000/asdf 测试会显示404 page,
但deploy上Netlify后,测试就无法显示404 page
请问应该怎么做?
export default defineConfig({
hash: true,
antd: {},
dva: {
hmr: true,
},
history: {
type: 'browser',
},
ssr: {},
exportStatic: {}, //pre-render
locale: {
default: 'en-US',
antd: true,
// default true, when it is true, will use
navigator.language
overwrite defaultbaseNavigator: false,
},
// dynamicImport: {},
targets: {
ie: 11,
},
// umi routes: https://umijs.org/docs/routing
routes,
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
theme: { ...theme },
title: false,
ignoreMomentLocale: true,
proxy: proxy[REACT_APP_ENV || 'dev'],
manifest: {
basePath: '/',
},
// 快速刷新功能 https://umijs.org/config#fastrefresh
fastRefresh: {},
esbuild: {},
});
且该404页面是有被打包的umi js里
Beta Was this translation helpful? Give feedback.
All reactions