Skip to content
Open
Changes from all 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
10 changes: 10 additions & 0 deletions packages/next/src/lib/inline-static-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ export async function inlineStaticEnv({
const serverChunks = await glob('**/*.{js,json,js.map}', {
cwd: serverDir,
})
const standaloneServerDir = path.join(
distDir,
'standalone',
'.next',
'server'
)
const standaloneServerChunks = await glob('**/*.{js,json,js.map}', {
cwd: standaloneServerDir,
})
const clientDir = path.join(distDir, 'static')
const clientChunks = await glob('**/*.{js,json,js.map}', {
cwd: clientDir,
Expand All @@ -48,6 +57,7 @@ export async function inlineStaticEnv({
for (const [parentDir, files] of [
[serverDir, serverChunks],
[clientDir, clientChunks],
[standaloneServerDir, standaloneServerChunks],
] as const) {
await Promise.all(
files.map(async (file) => {
Expand Down
Loading