-
Notifications
You must be signed in to change notification settings - Fork 27.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[metadata] set bypass ua regex string for ppr routes (#75977)
- Loading branch information
1 parent
798f4ce
commit 36f2756
Showing
22 changed files
with
341 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...ntal/internal/components/errors/environment-name-label/environment-name-label.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
import { EnvironmentNameLabel } from './environment-name-label' | ||
import { withShadowPortal } from '../../../storybook/with-shadow-portal' | ||
|
||
const meta: Meta<typeof EnvironmentNameLabel> = { | ||
component: EnvironmentNameLabel, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
decorators: [withShadowPortal], | ||
} | ||
|
||
export default meta | ||
type Story = StoryObj<typeof EnvironmentNameLabel> | ||
|
||
export const Server: Story = { | ||
args: { | ||
environmentName: 'Server', | ||
}, | ||
} | ||
|
||
export const Prerender: Story = { | ||
args: { | ||
environmentName: 'Prerender', | ||
}, | ||
} | ||
|
||
export const Cache: Story = { | ||
args: { | ||
environmentName: 'Cache', | ||
}, | ||
} |
24 changes: 24 additions & 0 deletions
24
...experimental/internal/components/errors/environment-name-label/environment-name-label.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { noop as css } from '../../../helpers/noop-template' | ||
|
||
export function EnvironmentNameLabel({ | ||
environmentName, | ||
}: { | ||
environmentName: string | ||
}) { | ||
return <span data-nextjs-environment-name-label>{environmentName}</span> | ||
} | ||
|
||
export const ENVIRONMENT_NAME_LABEL_STYLES = css` | ||
[data-nextjs-environment-name-label] { | ||
padding: var(--size-0_5) var(--size-1_5); | ||
margin: 0; | ||
/* used --size instead of --rounded because --rounded is missing 6px */ | ||
border-radius: var(--size-1_5); | ||
background: var(--color-gray-300); | ||
font-weight: 600; | ||
font-size: var(--size-font-11); | ||
color: var(--color-gray-900); | ||
font-family: var(--font-stack-monospace); | ||
line-height: var(--size-5); | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.