Skip to content

Commit

Permalink
[CORE] Generate user session and attach Klaviyo segments if configured (
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil-narayana-klevu committed Apr 22, 2024
1 parent cbb2147 commit 0f91ff1
Show file tree
Hide file tree
Showing 34 changed files with 664 additions and 347 deletions.
10 changes: 10 additions & 0 deletions examples/react-klevu-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ RUN chmod +x /entrypoint.sh

ADD examples/react-klevu-ui examples/react-klevu-ui
ADD packages/klevu-core packages/klevu-core
ADD packages/klevu-ui-react packages/klevu-ui-react
ADD packages/klevu-ui packages/klevu-ui

WORKDIR /app/packages/klevu-core
RUN npm install
RUN npm run build

WORKDIR /app/packages/klevu-ui
RUN npm install
RUN npm run build

WORKDIR /app/packages/klevu-ui-react
RUN npm install
RUN npm run build

WORKDIR /app/examples/react-klevu-ui
RUN npm install
RUN npm run build
Expand Down
5 changes: 5 additions & 0 deletions examples/react-klevu-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
/>
<script type="module" src="./src/index.tsx"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- <script
type="text/javascript"
async=""
src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=VKKgpW"
></script> -->
</head>
<body>
<div id="root"></div>
Expand Down
Loading

0 comments on commit 0f91ff1

Please sign in to comment.