Skip to content

Commit

Permalink
feat :: 채널톡 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
phyuna0525 committed Nov 8, 2024
1 parent fe668b5 commit c6d3d9a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@channel.io/channel-web-sdk-loader": "^2.0.0",
"@next/font": "^13.5.2",
"@sentry/nextjs": "^8.33.1",
"@sentry/utils": "^8.33.1",
Expand Down
9 changes: 9 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import localFont from "@next/font/local";
import { usePathname } from "next/navigation";
import { useEffect } from "react";
import "./globals.css";
import * as ChannelService from "@channel.io/channel-web-sdk-loader";

const pretendard = localFont({
src: [
Expand Down Expand Up @@ -45,6 +46,14 @@ export default function RootLayout({
}
}, [pathname]);

ChannelService.loadScript();

const CHATKEY = process.env.NEXT_PUBLIC_CHAT_KEY || "";

ChannelService.boot({
pluginKey: CHATKEY,
});

return (
<html>
<SEOConfig />
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,13 @@ __metadata:
languageName: node
linkType: hard

"@channel.io/channel-web-sdk-loader@npm:^2.0.0":
version: 2.0.0
resolution: "@channel.io/channel-web-sdk-loader@npm:2.0.0"
checksum: 11902a0695e718b2ff8f1df92684bd2c5bea06b5e4d83a1f907fe6eef16d1ca6e231bd4bceced2cd4e839c05407d9a8b96034cb902d17998e1e9e2bd799ea8ff
languageName: node
linkType: hard

"@emotion/is-prop-valid@npm:1.2.2":
version: 1.2.2
resolution: "@emotion/is-prop-valid@npm:1.2.2"
Expand Down Expand Up @@ -5055,6 +5062,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "my-app@workspace:."
dependencies:
"@channel.io/channel-web-sdk-loader": ^2.0.0
"@next/font": ^13.5.2
"@sentry/nextjs": ^8.33.1
"@sentry/utils": ^8.33.1
Expand Down

0 comments on commit c6d3d9a

Please sign in to comment.