Skip to content

Commit

Permalink
Merge branch 'canary' into 10-21-Fix_SCSS_and_SCSS_loader_handling_te…
Browse files Browse the repository at this point in the history
…sts_for_Turbopack
  • Loading branch information
kodiakhq[bot] authored Oct 21, 2023
2 parents 4bbe601 + 2bb9b2a commit 87257b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/next/src/lib/turbopack-warning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const supportedTurbopackNextConfigOptions = [
'webpack',
'onDemandEntries',
'experimental.cpus',
'serverRuntimeConfig',
'publicRuntimeConfig',
'exportPathMap',

// Experimental options that affect compilation
'experimental.swcPlugins',
Expand All @@ -64,8 +67,6 @@ const supportedTurbopackNextConfigOptions = [
'experimental.deploymentId',

// Experimental options that don't affect compilation
'serverRuntimeConfig',
'publicRuntimeConfig',
'experimental.proxyTimeout',
'experimental.caseSensitiveRoutes',
'experimental.workerThreads',
Expand Down
8 changes: 6 additions & 2 deletions test/integration/filesystempublicroutes/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ describe('FileSystemPublicRoutes', () => {
const res = await fetch('/exportpathmap-route')
expect(res.status).toBe(200)
const body = await res.text()
expect(body).toMatch(/exportpathmap was here/)
expect(body).toMatch(
process.env.TURBOPACK ? /turbopack/ : /exportpathmap was here/
)
})

it('should still handle /_next routes', async () => {
Expand All @@ -52,7 +54,9 @@ describe('FileSystemPublicRoutes', () => {
const res = await fetch(join('/_next', pageFile))
expect(res.status).toBe(200)
const body = await res.text()
expect(body).toMatch(/exportpathmap was here/)
expect(body).toMatch(
process.env.TURBOPACK ? /turbopack/ : /exportpathmap was here/
)
})

it('should route to public folder files', async () => {
Expand Down

0 comments on commit 87257b0

Please sign in to comment.