Skip to content

Commit

Permalink
feat :: 채널톡 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
phyuna0525 authored Oct 29, 2024
2 parents 3332aa8 + c5abe5b commit 2862330
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .pnp.cjs

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

Binary file not shown.
1 change: 1 addition & 0 deletions apps/company/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"start": "next start -p 4000"
},
"dependencies": {
"@channel.io/channel-web-sdk-loader": "^2.0.0",
"@next/bundle-analyzer": "^13.5.4",
"@sentry/nextjs": "^8",
"@sentry/utils": "^8.33.1",
Expand Down
11 changes: 10 additions & 1 deletion apps/company/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ import "@jobis/design-token/global.css";
import "@jobis/ui/style.css";
import { Header } from "@/components/header";
import { usePathname } from "next/navigation";
import * as ChannelService from "@channel.io/channel-web-sdk-loader";

ChannelService.loadScript();

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

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

const notoSans = Noto_Sans_KR({
weight: ["400", "500", "700"],
Expand All @@ -19,7 +28,7 @@ const notoSans = Noto_Sans_KR({

export default function RootLayout({ children }: { children: ReactNode }) {
const pathname = usePathname();
console.log(pathname);

return (
<html lang="ko" className={notoSans.className}>
<body>
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1856,6 +1856,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: 10/11bf96fa8863a9800537f674225bc3fa67cea59592a8bd1fc9d333e5db899e08ff885bd3380f67b62e0ba7ab3252a7ba2df636cf58f84b562584830ade370f6a
languageName: node
linkType: hard

"@colors/colors@npm:1.5.0":
version: 1.5.0
resolution: "@colors/colors@npm:1.5.0"
Expand Down Expand Up @@ -3216,6 +3223,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@jobis/company@workspace:apps/company"
dependencies:
"@channel.io/channel-web-sdk-loader": "npm:^2.0.0"
"@jobis/design-token": "workspace:^"
"@jobis/ui": "workspace:^"
"@next/bundle-analyzer": "npm:^13.5.4"
Expand Down

0 comments on commit 2862330

Please sign in to comment.