Skip to content

Commit 9f371fd

Browse files
committed
remove no longer used
1 parent 0c24a46 commit 9f371fd

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/build/content/static.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,6 @@ export const copyStaticContent = async (ctx: PluginContext): Promise<void> => {
5454
})
5555
}
5656

57-
/**
58-
* Copy static content to the static dir so it is uploaded to the CDN
59-
*/
60-
export const copyStaticAssets = async (ctx: PluginContext): Promise<void> => {
61-
return tracer.withActiveSpan('copyStaticAssets', async (span): Promise<void> => {
62-
try {
63-
await rm(ctx.staticDir, { recursive: true, force: true })
64-
const { basePath } = await ctx.getRoutesManifest()
65-
if (existsSync(ctx.resolveFromSiteDir('public'))) {
66-
await cp(ctx.resolveFromSiteDir('public'), join(ctx.staticDir, basePath), {
67-
recursive: true,
68-
})
69-
}
70-
if (existsSync(join(ctx.publishDir, 'static'))) {
71-
await cp(join(ctx.publishDir, 'static'), join(ctx.staticDir, basePath, '_next/static'), {
72-
recursive: true,
73-
})
74-
}
75-
} catch (error) {
76-
span.end()
77-
ctx.failBuild('Failed copying static assets', error)
78-
}
79-
})
80-
}
81-
8257
export const copyStaticExport = async (ctx: PluginContext): Promise<void> => {
8358
await tracer.withActiveSpan('copyStaticExport', async () => {
8459
if (!ctx.exportDetail?.outDirectory) {

0 commit comments

Comments
 (0)