Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

채널톡 추가 #137

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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