Skip to content

Commit b95c065

Browse files
authored
cve: fix remaining projects (#1357)
### Description Fixing more deployments These projects were delete in 285ad9e or were orphaned for another reason. So I deleted them: - next-edge-api-route-hello-world - solutions-parallel-routes-navbar - solutions-monorepo <!-- ✍️ Write a short summary of your work. Screenshots and videos are welcome! --> ### Demo URL <!-- Provide a URL to a live deployment where we can test your PR. If a demo isn't possible feel free to omit this section. --> ### Type of Change - [ ] New Example - [ ] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered?
1 parent e24ccad commit b95c065

File tree

19 files changed

+7192
-5105
lines changed

19 files changed

+7192
-5105
lines changed

edge-middleware/feature-flag-hypertune/generated/hypertune.vercel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import * as hypertuneTypes from './hypertune'
88
import getHypertune from '../lib/getHypertune'
99

1010
export async function getVercelOverride(): Promise<hypertuneTypes.Source | null> {
11-
const overridesCookieValue = cookies().get('vercel-flag-overrides')?.value
11+
const cookieStore = await cookies()
12+
const overridesCookieValue = cookieStore.get('vercel-flag-overrides')?.value
1213

1314
if (!overridesCookieValue) {
1415
return null

edge-middleware/feature-flag-hypertune/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@vercel/edge-config": "^1.1.1",
15-
"@vercel/examples-ui": "^2.0.3",
15+
"@vercel/examples-ui": "^2.0.4",
1616
"@vercel/flags": "2.5.1",
1717
"@vercel/toolbar": "^0.1.15",
1818
"hypertune": "2.4.0",
@@ -33,6 +33,7 @@
3333
"postcss": "^8.4.38",
3434
"prettier": "^3.2.5",
3535
"tailwindcss": "^3.4.3",
36-
"turbo": "1.13.4"
36+
"turbo": "1.13.4",
37+
"typescript": "^5"
3738
}
3839
}

edge-middleware/feature-flag-hypertune/pnpm-lock.yaml

Lines changed: 11 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

edge-middleware/feature-flag-hypertune/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"incremental": true,
1010
"esModuleInterop": true,
1111
"module": "esnext",
12-
"moduleResolution": "node",
12+
"moduleResolution": "bundler",
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
1515
"jsx": "react-jsx",
@@ -18,6 +18,9 @@
1818
"name": "next"
1919
}
2020
],
21+
"paths": {
22+
"@/*": ["./*"]
23+
},
2124
"target": "ES2017"
2225
},
2326
"include": [

edge-middleware/power-parity-pricing-strategies/pages/404.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Link from 'next/link'
22
import { Layout } from '@vercel/examples-ui'
33

4-
function NotFoundPage(): JSX.Element {
4+
function NotFoundPage() {
55
return (
66
<section className="border border-gray-300 bg-white rounded-lg shadow-lg w-full max-w-[480px] hover:shadow-2xl p-4 mt-8 text-center">
77
<p>This product is not available in your region.</p>

edge-middleware/redirects-bloom-filter/app/blog/[slug]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
'use client'
2+
13
import { Text } from '@vercel/examples-ui'
24

3-
export default async function Page({ params }: { params: { slug: string } }) {
5+
export default function Page({ params }: { params: { slug: string } }) {
46
return (
57
<>
68
<h1 className="text-6xl font-bold">Blog Post</h1>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use client'
2+
3+
import { Page, Layout } from '@vercel/examples-ui'
4+
5+
export function ClientLayout({ children }: { children: React.ReactNode }) {
6+
return (
7+
<Layout path="edge-middleware/redirects-bloom-filter">
8+
<Page>{children}</Page>
9+
</Layout>
10+
)
11+
}

edge-middleware/redirects-bloom-filter/app/layout.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Metadata } from 'next'
22
import '@vercel/examples-ui/globals.css'
3-
import { Page, Layout } from '@vercel/examples-ui'
3+
import { ClientLayout } from './client-layout'
44

55
export const metadata: Metadata = {
66
title: 'Redirect link examples',
@@ -14,9 +14,7 @@ export default function RootLayout({
1414
return (
1515
<html lang="en">
1616
<body>
17-
<Layout path="edge-middleware/redirects-bloom-filter">
18-
<Page>{children}</Page>
19-
</Layout>
17+
<ClientLayout>{children}</ClientLayout>
2018
</body>
2119
</html>
2220
)

edge-middleware/redirects-bloom-filter/app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { List, Link, Text } from '@vercel/examples-ui'
24

35
const redirectingLinks = [

solutions/testing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
"eslint-config-turbo": "^1.9.3",
2323
"turbo": "^1.9.3"
2424
},
25-
"packageManager": "pnpm@7.17.1"
25+
"packageManager": "pnpm@8.15.0"
2626
}

0 commit comments

Comments
 (0)