merge: First tutorial + Example (#804)
## Changes: - /docs is now a Getting Started page with the first tutorial - basic-example added
This commit is contained in:
15
site/scripts/fix-symlinks.mjs
Normal file
15
site/scripts/fix-symlinks.mjs
Normal file
@@ -0,0 +1,15 @@
|
||||
// Script executed before builds
|
||||
|
||||
import { exec } from "child_process";
|
||||
import fs from "fs";
|
||||
|
||||
// If Vercel environment is detected
|
||||
if (process.env.VERCEL_ENV) {
|
||||
console.log(
|
||||
"[scripts/fix-symlinks.mjs] Vercel environment detected. Fixing symlinks..."
|
||||
);
|
||||
|
||||
// fs.unlinkSync('public/assets')
|
||||
exec('cp -r ./content/assets ./public/')
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user