Support serverRuntimeConfig and publicRuntimeConfig in Turbopack (#56310)

Allows `publicRuntimeConfig` / `serverRuntimeConfig` to be set.
This commit is contained in:
Tim Neutkens 2023-10-02 18:40:58 +02:00 committed by GitHub
parent 8d18ad60d7
commit 7f60cc8b0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View file

@ -64,6 +64,8 @@ const supportedTurbopackNextConfigOptions = [
'experimental.deploymentId',
// Experimental options that don't affect compilation
'serverRuntimeConfig',
'publicRuntimeConfig',
'experimental.proxyTimeout',
'experimental.caseSensitiveRoutes',
'experimental.workerThreads',

View file

@ -4,7 +4,6 @@ export default {
maxInactiveAge: 1000 * 60 * 60,
},
poweredByHeader: false,
cssModules: true,
serverRuntimeConfig: {
mySecret: 'secret',
},

View file

@ -4,7 +4,6 @@ module.exports = {
maxInactiveAge: 1000 * 60 * 60,
},
poweredByHeader: false,
cssModules: true,
serverRuntimeConfig: {
mySecret: 'secret',
},