mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-05 13:35:24 +02:00
some fixes
This commit is contained in:
parent
462dda6be9
commit
24843ec040
4 changed files with 11 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -75,7 +75,7 @@ db/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# Uploads
|
# Uploads
|
||||||
/public/uploads
|
/uploads
|
||||||
/public/uploads_test
|
/public/uploads_test
|
||||||
|
|
||||||
# Compiled files
|
# Compiled files
|
||||||
|
|
|
@ -3,7 +3,7 @@ host: "localhost"
|
||||||
uploads:
|
uploads:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
local:
|
local:
|
||||||
path: "./public/uploads"
|
path: "./uploads"
|
||||||
s3:
|
s3:
|
||||||
bucket: "my-bucket"
|
bucket: "my-bucket"
|
||||||
region: "eu-central-1"
|
region: "eu-central-1"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "codex.docs",
|
"name": "codex.docs",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"version": "0.0.1-alpha.6",
|
"version": "0.0.1-alpha.8",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
"codex.docs": "dist/backend/app.js"
|
"codex.docs": "dist/backend/app.js"
|
||||||
|
|
|
@ -112,8 +112,14 @@ export default async function buildStatic(): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
await renderIndexPage(config.indexPageUri);
|
await renderIndexPage(config.indexPageUri);
|
||||||
|
|
||||||
await fse.copy(path.resolve(dirname, '../../public'), distPath);
|
|
||||||
console.log('Static files built');
|
console.log('Static files built');
|
||||||
|
|
||||||
|
console.log('Copy public directory');
|
||||||
|
await fse.copy(path.resolve(dirname, '../../public'), distPath);
|
||||||
|
|
||||||
|
if (appConfig.uploads.driver === 'local') {
|
||||||
|
console.log('Copy uploads directory');
|
||||||
|
await fse.copy(path.resolve(cwd, appConfig.uploads.local.path), path.resolve(distPath, 'uploads'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue