nextjs2 [nextjs] router 에서 구글 애널리틱스(Google Analitics) google tag manager 적용 https://tagmanager.google.com/구글 태그매니저로 구글 애널리틱스 적용하려면, 자바스크립트 코드를 추가해야하는데, 고대로 복붙하면 적용되지 않는다. 다음을 참고하면 된다. https://nextjs.org/docs/app/building-your-application/optimizing/third-party-libraries Optimizing: Third Party Libraries | Next.jsOptimize the performance of third-party libraries in your application with the `@next/third-parties` package.nextjs.org 설치npm install @next/third-parties@latest.. 2024. 10. 13. NEXTAUTH_SECRET 적용하기 (NextAuth) [참고] https://next-auth.js.org/configuration/options#nextauth_secret Environment VariablesNEXTAUTH_URLWhen deploying to production, set the NEXTAUTH_URL environment variable to the canonical URL of your site.NEXTAUTH_URL=https://example.com If your Next.js application uses a custom base path, specify the route to the API endpoint in full. More information about the usage of custom base path her.. 2024. 10. 12. 이전 1 다음