feat: add route-backed project case studies
This commit is contained in:
12
scripts/prepare-standalone.mjs
Normal file
12
scripts/prepare-standalone.mjs
Normal file
@@ -0,0 +1,12 @@
|
||||
import { cp } from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
|
||||
const projectRoot = path.resolve('.');
|
||||
const standaloneRoot = path.join(projectRoot, '.next', 'standalone');
|
||||
|
||||
await cp(path.join(projectRoot, 'public'), path.join(standaloneRoot, 'public'), { recursive: true });
|
||||
await cp(
|
||||
path.join(projectRoot, '.next', 'static'),
|
||||
path.join(standaloneRoot, '.next', 'static'),
|
||||
{ recursive: true },
|
||||
);
|
||||
Reference in New Issue
Block a user