Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] 0.1.x版本怎么设置proxy #129

Open
jqhr opened this issue May 22, 2023 · 1 comment
Open

[Question] 0.1.x版本怎么设置proxy #129

jqhr opened this issue May 22, 2023 · 1 comment

Comments

@jqhr
Copy link

jqhr commented May 22, 2023

我在开发低代码引擎的设置器,官方的脚手架工具是这个,它用的就是@alib/build-scripts的版本是0.1.32。
目前我找不到build-scripts的文档,build.json如下
image
执行build-scripts start会报错:
image
现在开发要调用接口,怎么办

@testudy
Copy link

testudy commented Aug 9, 2023

build.lowcode.js配置devServer中的proxy,关键代码如下:

module.exports = {      
  devServer: {    
    proxy: {    
        '/api/': {    
          target: 'https://xxx.xxxxxx.com/',    
          changeOrigin: true    
        }    
      }    
  },
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants