企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
框架默认为history模式,生产环境时需要对应的nginx配置支撑。可手动修改为hash模式,值为'hash'。 ~~~ context.$configure.set('routerMode', 'history'); ~~~ history模式下,nginx的支撑配置如下: ~~~ location / { proxy_connect_timeout 900s; client_max_body_size 100m; proxy_send_timeout 900; proxy_read_timeout 900; proxy_intercept_errors on; try_files $uri $uri/ /index.html; //主要是这一行 在出现错误时,指向index.html } ~~~