앨리스래빗팀 기술블로그

태그 글작성 관리
  • 홈
  • 태그
  • 방명록

FE/Next 2

[ Next ] 뒤로가기 막고 history 삭제

useEffect(() => { router.beforePopState(({ url, as, options }) => { if (as !== router.asPath) { window.history.pushState('', ''); router.push(router.asPath); return false } return true }) return () => { router.beforePopState(() => true); }; }, [])

FE/Next 브레인야또 2023.05.31

[ Next ] api 통신 시 cors에러 해결 방법

next.config.js 파일에 rewrites를 작성해서 우회 시킨다. 여기서 중요한 점은 rewrites설정 했으면 api보낼때 앞에 baseUrl을 붙이면 안된다. const nextConfig = { reactStrictMode: true, swcMinify: true, async rewrites() { return [ { source: '/api/:path*', destination: `${process.env.NEXT_PUBLIC_SERVER_URL}/:path*` }, ] }, } module.exports = nextConfig export const api = axios.create({ baseURL: `/api`, withCredentials: true, timeout: 600000 ..

FE/Next 라넌.B 2023.03.21
1
더보기

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
  • 분류 전체보기
    • Team
      • GIT
      • TOOLS
      • 난감했던 이슈들
    • Design
      • 기업페이지
      • 커머스
      • Inspiration
      • UIUX
    • App
      • Flutter
      • Android
      • iOS
    • FE
      • Angular
      • Canvas
      • CSS
      • HTML
      • IONIC
      • Javascript
      • NodeJS
      • React
      • Next
      • Typescript
      • Vue
      • Plugins
    • BE
      • AWS
      • Java
      • Linux
      • Nest
      • OS
      • PHP
      • Python
      • Security
      • Network
    • DB
      • DB2
      • MongoDB
      • MYSQL
    • Inspirations
      • Art
      • Code
    • AI
      • openai

Archives

프로필사진

앨리스래빗팀 기술블로그입니다. https://alicerabbit.team

방문자수Total

  • Today :
  • Yesterday :

Tag

git, Flutter, angular, DB2, AWS, ionic, ios, RDS, mysql, 플러터, Android, Web, vscode, CSS, OSX, DART, Javascript, Linux, HTML, node,

최근글과 인기글

  • 최근글
  • 인기글

Copyright © Kakao Corp. All rights reserved.

  • 앨리스래빗

티스토리툴바