mirror of
https://git.zhongyuan.online/ytke/tap.git
synced 2026-11-24 22:15:18 -08:00
10 lines
474 B
JavaScript
10 lines
474 B
JavaScript
import { cp, mkdir } from 'node:fs/promises';
|
|||
|
|
import { resolve } from 'node:path';
|
||
|
|
const standalone=resolve('.next/standalone');
|
||
|
|
await mkdir(`${standalone}/.next`,{recursive:true});
|
||
|
|
await Promise.all([
|
||
|
|
cp('public',`${standalone}/public`,{recursive:true}),
|
||
|
|
cp('content',`${standalone}/content`,{recursive:true}),
|
||
|
|
cp('.next/static',`${standalone}/.next/static`,{recursive:true}),
|
||
|
|
]);
|
||
|
|
console.log('Standalone server prepared with page assets and authenticated documents.');
|