Skip to content

be-student/TEAM_4_backend

 
 

Repository files navigation

swagger setting,
crlf setting remove delete 'cr'
hot reloading,
nest swagger
git ignore .env
import * as library from "library" => import library from "library"로 가능하게 됨.

to use typeorm put
keepConnectionAlive: true
inside of TypeORM configuration

when using fastify-swagger or helmet will cause CSP problem.

app.register(helmet, {
  contentSecurityPolicy: {
    directives: {
      defaultSrc: [`'self'`],
      styleSrc: [`'self'`, `'unsafe-inline'`],
      imgSrc: [`'self'`, 'data:', 'validator.swagger.io'],
      scriptSrc: [`'self'`, `https: 'unsafe-inline'`],
    },
  },
});

// If you are not going to use CSP at all, you can use this:
app.register(helmet, {
  contentSecurityPolicy: false,
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.1%
  • JavaScript 2.3%
  • Other 0.6%