목록전체 글 (91)
Hello World...
특정 api 메서드는 보이지 않게 하려고 한다. 이런 경우 @ApiExcludeEndpoint() 를 사용하면 된다. import { Controller, Get } from '@nestjs/common'; import { ApiExcludeEndpoint } from '@nestjs/swagger'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) {} @ApiExcludeEndpoint() @Get() getHello(): string { return this.appService.getHello(); ..
인생을 멋있게 살기 위해서는 몇 가지 조언이 있습니다. 목표를 설정하세요: 인생을 멋있게 사는 첫 번째 단계는 자신의 목표를 설정하는 것입니다. 당신이 원하는 것은 무엇인지 정하고, 그것을 달성하기 위해 노력하세요. 긍정적인 마인드셋을 유지하세요: 긍정적인 생각은 우리가 살아가는 방식을 크게 영향을 미칩니다. 이러한 마인드셋으로 살면 어려움에 직면해도 긍정적인 결과를 얻을 수 있습니다. 노력하고 인내하세요: 멋진 삶을 위해서는 노력과 인내가 필요합니다. 어떤 일을 단번에 해내는 것은 거의 불가능합니다. 그러므로 시간과 노력을 들여 목표를 달성하세요. 새로운 경험을 즐기세요: 새로운 경험은 삶을 더욱 풍부하게 만듭니다. 새로운 경험을 즐기고 자신이 더욱 발전할 수 있는 기회를 찾으세요. 건강에 유의하세요:..
https://engschool.tistory.com/83 nextauth + firebase authentication #1 nextjs에 next-auth를 넣고 firebase authentication이랑 연동하는 걸 해봤는데 되긴 하더라구. 그래서 블로그를 남기는데 이것 저것 테스트하던 프로젝트 위에 하니까 지저분하고 그래서 새로 nextjs 프로젝 engschool.tistory.com https://engschool.tistory.com/84 nextauth + firebase authentication #2 2022.06.02 - [Next.js] - nextauth + firebase authentication #1 nextauth + firebase authentication #1 ne..
nuxt2 뿐만 아니라 vue3 vite 에서도 index.html 을 main.html 등으로 (main 말고 다른 이름도 상관없음) 파일 이름을 변경해야 했다. index.html 파일의 이름을 main.html (예시) 로 변경한 후 vite.config.ts 에서 변경해주면 된다. ... server: { open: "/main.html", }, build: { rollupOptions: { input: { app: "./main.html" }, } }, ... https://stackoverflow.com/questions/71295772/in-vite-is-there-a-way-to-update-the-root-html-name-from-index-html In vite, is there a ..

nuxt2 빌드시, dist 폴더에 index.html 대신 main.html 이 생성되도록 하고 싶었다.(이름만 변경) 이름만 변경되는 것은 아니고 main.html 이 생성되는 방식으로 해결할 수 있었다. nuxt.config.js 에 generate 속성을 추가하면 된다. ..., generate: { fallback: 'main.html' }, ... https://github.com/nuxt/nuxt.js/issues/4686 https://github.com/nuxt/nuxt.js/issues/4686#issuecomment-452597580 how can i customize index file name · Issue #4686 · nuxt/nuxt.js how can i customize ..

백그라운드에 하이라이트를 적용하고 싶은데, markArea 옵션이 제대로 적용이 되지 않았다. 나는 vue-echarts 라이브러리를 사용하고 있는데 처음에 버그인줄 알았다. 하지만 아니었다. echart 에서 제공하는 옵션 중 하나인 markArea 를 vue-echarts 에서 사용하려면 MarkAreaComponent 컴포넌트를 임포트 해야 한다. import { use } from 'echarts/core'; import { CanvasRenderer } from 'echarts/renderers'; import { LineChart } from 'echarts/charts'; import { TitleComponent, TooltipComponent, LegendComponent, GridCom..

api 문서가 있는 페이지에 접근 제어를 하고 싶다면 express-basic-auth 라이브러릴 활용 이름, 비밀번호로 로그인하게 할 수 있다. 로그인된 사용자만 해당 페이지 접속. import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { winstonLogger } from './utils/winston.util'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; import basicAuth from 'express-basic-auth'; async function bootstrap() { const app = awai..