Skip to content

Commit

Permalink
Merge pull request privacysandbox#51 from privacysandbox/shop
Browse files Browse the repository at this point in the history
[shop] fix server side code
  • Loading branch information
Seburan authored Jul 14, 2023
2 parents 433a4e6 + 6eed7aa commit bc9d83d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions services/shop/app/items/[id]/DSPTag.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

import "server-only"
import Script from "next/script"

const { SHOP_HOST, DSP_HOST, EXTERNAL_PORT } = process.env
Expand Down
1 change: 1 addition & 0 deletions services/shop/lib/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
limitations under the License.
*/

import "server-only"
import { cookies } from "next/headers"
import { Item, Order } from "./items"

Expand Down
6 changes: 6 additions & 0 deletions services/shop/package-lock.json

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

1 change: 1 addition & 0 deletions services/shop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"next": "13.4.9",
"react": "18.2.0",
"react-dom": "18.2.0",
"server-only": "^0.0.1",
"swr": "^2.2.0"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions services/shop/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2130,6 +2130,11 @@ semver@^7.3.7:
dependencies:
lru-cache "^6.0.0"

server-only@^0.0.1:
version "0.0.1"
resolved "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz"
integrity sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==

setprototypeof@1.2.0:
version "1.2.0"
resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz"
Expand Down

0 comments on commit bc9d83d

Please sign in to comment.