Skip to content

Commit

Permalink
Support serverRuntimeConfig and publicRuntimeConfig in Turbopack (#56310
Browse files Browse the repository at this point in the history
)

Allows `publicRuntimeConfig` / `serverRuntimeConfig` to be set.
  • Loading branch information
timneutkens committed Oct 2, 2023
1 parent 8d18ad6 commit 7f60cc8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/next/src/lib/turbopack-warning.ts
Expand Up @@ -64,6 +64,8 @@ const supportedTurbopackNextConfigOptions = [
'experimental.deploymentId',

// Experimental options that don't affect compilation
'serverRuntimeConfig',
'publicRuntimeConfig',
'experimental.proxyTimeout',
'experimental.caseSensitiveRoutes',
'experimental.workerThreads',
Expand Down
1 change: 0 additions & 1 deletion test/integration/config-mjs/next.config.mjs
Expand Up @@ -4,7 +4,6 @@ export default {
maxInactiveAge: 1000 * 60 * 60,
},
poweredByHeader: false,
cssModules: true,
serverRuntimeConfig: {
mySecret: 'secret',
},
Expand Down
1 change: 0 additions & 1 deletion test/integration/config/next.config.js
Expand Up @@ -4,7 +4,6 @@ module.exports = {
maxInactiveAge: 1000 * 60 * 60,
},
poweredByHeader: false,
cssModules: true,
serverRuntimeConfig: {
mySecret: 'secret',
},
Expand Down

0 comments on commit 7f60cc8

Please sign in to comment.