Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 0 additions & 4 deletions e2e-report/.eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions e2e-report/app/badge/route.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ImageResponse } from 'next/og'
import testData from '@/utils/data'
import { badgeSettings, badgeSize } from '@/utils/consts'
import { badgeSettings } from '@/utils/consts'

export const dynamic = 'force-static'

Expand All @@ -16,7 +16,7 @@ const bgStyles = {
}

// Generate an SVG badge with test status and target Next.js version
export async function GET(request) {
export async function GET() {
const valueStyle =
bgStyles[testData.failed === 0 ? 'ok' : testData.unknownFailuresCount > 0 ? 'error' : 'warning']

Expand Down
2 changes: 1 addition & 1 deletion e2e-report/components/copy-badge.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'
import { useEffect, useState } from 'react'
import { CopyIcon } from './icons'
import { badgeDisplaySize, badgeSettings } from '@/utils/consts'
import { badgeSettings } from '@/utils/consts'

export default function CopyBadgeButton() {
const [host, setHost] = useState('')
Expand Down
2 changes: 1 addition & 1 deletion e2e-report/data/test-results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8528,7 +8528,7 @@
"link": "https://github.com/netlify/next-runtime-minimal/issues/564"
},
{
"name": "skip-trailing-slash-redirect should be able to redirect locale casing $1",
"name": "skip-trailing-slash-redirect should be able to redirect locale casing $2",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sample data, was creating duplicate key warnings when running locally

"status": "failed",
"retries": 0,
"reason": "does not correctly handle user middleware that redirects to path with canonical locale casing when app enables `skipMiddlewareUrlNormalize` and path contains locale slug with non-canonical casing",
Expand Down
14 changes: 14 additions & 0 deletions e2e-report/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { FlatCompat } from '@eslint/eslintrc'

const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
})

const eslintConfig = [
{
ignores: ['node_modules/**', '.next/**', 'tailwind.config.js'],
},
...compat.extends('next/core-web-vitals', 'next/typescript'),
]

export default eslintConfig
4 changes: 3 additions & 1 deletion e2e-report/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
outputFileTracingRoot: import.meta.dirname,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicit root to avoid warnings about workspaces / multiple package.json files

}

export default nextConfig
Loading
Loading