We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
egg 的 scf_bootstrap 是这么写的
const { Application } = require('egg'); // 如果通过层部署 node_modules 就需要修改 eggPath Object.defineProperty(Application.prototype, Symbol.for('egg#eggPath'), { value: '/opt', }); const app = new Application({ mode: 'single', env: 'prod', }); // ...
如果使用基于 Egg 封装的框架,无法加载上层框架,需要做这样的改动才能加载:
// package.json "egg": { "framework": "my-framework" },
// sls.js const { Application } = require('my-framework'); Object.defineProperty(Application.prototype, Symbol.for('egg#eggPath'), { value: '/opt/node_modules/my-framework', }); const app = new Application({ mode: 'single', env: 'prod', }); // ...
# serverless.yml # 将 component: egg 改成 component: koa component: koa inputs: entryFile: sls.js # ......
The text was updated successfully, but these errors were encountered:
No branches or pull requests
egg 的 scf_bootstrap 是这么写的
如果使用基于 Egg 封装的框架,无法加载上层框架,需要做这样的改动才能加载:
The text was updated successfully, but these errors were encountered: