config.prod.ts 520 B

12345678910111213141516171819202122232425262728
  1. import { EggAppConfig, PowerPartial } from 'egg';
  2. export default () => {
  3. const config: PowerPartial<EggAppConfig> = {
  4. // static
  5. static: {
  6. prefix: '',
  7. gzip: true,
  8. alias: {
  9. '/': '',
  10. 'index.html': '',
  11. index: '',
  12. },
  13. },
  14. mysql: {
  15. client: {
  16. host: 'localhost',
  17. port: '3306',
  18. user: 'tanjiawei',
  19. password: '123456',
  20. database: 'evaluation',
  21. },
  22. app: true,
  23. agent: true,
  24. },
  25. };
  26. return config;
  27. };