Skip to content

Commit b8fae4c

Browse files
committed
Glob all server files instead of specific subdirectories
1 parent 82355d7 commit b8fae4c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/build/content/server.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,10 @@ export const copyNextServerCode = async (ctx: PluginContext): Promise<void> => {
9999
: ctx.nextDistDir
100100
const destDir = join(ctx.serverHandlerDir, nextFolder)
101101

102-
const paths = await glob(
103-
[`*`, `server/*`, `server/chunks/*`, `server/edge-chunks/*`, `server/+(app|pages)/**/*.js`],
104-
{
105-
cwd: srcDir,
106-
extglob: true,
107-
},
108-
)
102+
const paths = await glob([`*`, `server/**/*`], {
103+
cwd: srcDir,
104+
extglob: true,
105+
})
109106

110107
await Promise.all(
111108
paths.map(async (path: string) => {

0 commit comments

Comments
 (0)