[NextJS] Redirect and Rewrite
Redirect next.config.js /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, swcMinify: true, async redirects() { return [ { source: "/이렇게 친다면", destination: "/여기로 보내줘", permanent: false, }, ]; }, }; module.exports = nextConfig; 1. source를 찾는다 ( /find로 이동한다면) 유저가 어디론가 이동한다면 원하는 곳으로 destination으로 보낸다 ( /about 으로 가게 해줘) 2. redirection이 영구적(permanent)인지 아닌지에 따라 브라우저나..
NextJS
2022. 10. 14. 17:21
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- NextJS
- nextredirect
- typescriptfunction
- 파이어베이스버전9
- firebasev9
- 웹인쇄
- nextjscss
- typescriptinterface
- nextrewrite
- websocekt
- 404pages
- typescriptclass
- Socket
- firebaseorderby
- Router
- cssmodules
- 웹소캣
- nextjsjsx
- webhook이란
- TypeScript
- reactquill
- nextjsrouter
- stylesjsx
- nextjsseo
- reduxtoolkit
- React
- reactjs
- mediaprint
- serversiderendering
- firebasecollection
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
