Skip to content

Commit

Permalink
Merge branch 'canary' into add/otel-client-loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Feb 20, 2024
2 parents f492487 + 5be8135 commit dd04292
Show file tree
Hide file tree
Showing 171 changed files with 14 additions and 15 deletions.
11 changes: 5 additions & 6 deletions packages/next/src/server/lib/patch-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,12 @@ export function patchFetch({
}
input = new Request(reqInput.url, reqOptions)
} else if (init) {
const initialInit = init
const { _ogBody, body, signal, ...otherInput } =
init as RequestInit & { _ogBody?: any }
init = {
body: (init as any)._ogBody || init.body,
}
for (const field of requestInputFields) {
// @ts-expect-error custom fields
init[field] = initialInit[field]
...otherInput,
body: _ogBody || body,
signal: isStale ? undefined : signal,
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/integration/scss/test/basic-global-support.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readdir, readFile, remove } from 'fs-extra'
import { nextBuild } from 'next-test-utils'
import { join } from 'path'

const fixturesDir = join(__dirname, '../..', 'scss-fixtures')
const fixturesDir = join(__dirname, '..', 'scss-fixtures')

describe('Basic Global Support scss', () => {
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/scss/test/basic-scss.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import webdriver from 'next-webdriver'
import { join } from 'path'
import { quote as shellQuote } from 'shell-quote'

const fixturesDir = join(__dirname, '../..', 'scss-fixtures')
const fixturesDir = join(__dirname, '..', 'scss-fixtures')

describe('SCSS Support', () => {
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/scss/test/css-and-styled-jsx.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import webdriver from 'next-webdriver'
import { join } from 'path'

const fixturesDir = join(__dirname, '../..', 'scss-fixtures')
const fixturesDir = join(__dirname, '..', 'scss-fixtures')

describe('Ordering with styled-jsx (dev)', () => {
const appDir = join(fixturesDir, 'with-styled-jsx')
Expand Down
2 changes: 1 addition & 1 deletion test/integration/scss/test/dev-css-handling.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { File, findPort, killApp, launchApp, waitFor } from 'next-test-utils'
import webdriver from 'next-webdriver'
import { join } from 'path'

const fixturesDir = join(__dirname, '../..', 'scss-fixtures')
const fixturesDir = join(__dirname, '..', 'scss-fixtures')

describe('Has CSS in computed styles in Development', () => {
const appDir = join(fixturesDir, 'multi-page')
Expand Down
2 changes: 1 addition & 1 deletion test/integration/scss/test/scss-loader-handling.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readdir, readFile, remove } from 'fs-extra'
import { nextBuild } from 'next-test-utils'
import { join } from 'path'

const fixturesDir = join(__dirname, '../..', 'scss-fixtures')
const fixturesDir = join(__dirname, '..', 'scss-fixtures')

describe('SCSS Support loader handling', () => {
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import webdriver from 'next-webdriver'
import { join } from 'path'

const fixturesDir = join(__dirname, '../../scss-fixtures')
const fixturesDir = join(__dirname, '..', 'scss-fixtures')

describe('Basic SCSS Module Support', () => {
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { findPort, killApp, nextBuild, nextStart } from 'next-test-utils'
import webdriver from 'next-webdriver'
import { join } from 'path'

const fixturesDir = join(__dirname, '../../scss-fixtures')
const fixturesDir = join(__dirname, '..', 'scss-fixtures')

describe('Dynamic Route CSS Module Usage', () => {
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from 'next-test-utils'
import { join } from 'path'

const fixturesDir = join(__dirname, '../../scss-fixtures')
const fixturesDir = join(__dirname, '..', 'scss-fixtures')

describe.skip('Invalid CSS Module Usage in node_modules', () => {
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/scss/test/valid-invalid-scss.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { remove } from 'fs-extra'
import { nextBuild } from 'next-test-utils'
import { join } from 'path'

const fixturesDir = join(__dirname, '../..', 'scss-fixtures')
const fixturesDir = join(__dirname, '..', 'scss-fixtures')

describe('Invalid SCSS in _document', () => {
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
Expand Down

0 comments on commit dd04292

Please sign in to comment.