feat: initial emdash setup with Docker + QNAP config

This commit is contained in:
Nox
2026-04-02 19:25:13 +02:00
commit bde1af8ccf
44 changed files with 19847 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
import node from "@astrojs/node";
import react from "@astrojs/react";
import { auditLogPlugin } from "@emdash-cms/plugin-audit-log";
import { defineConfig } from "astro/config";
import emdash, { local } from "emdash/astro";
import { sqlite } from "emdash/db";
const dbPath = process.env.DATABASE_PATH || "./data.db";
const uploadDir = process.env.UPLOAD_DIR || "./uploads";
export default defineConfig({
output: "server",
adapter: node({
mode: "standalone",
}),
image: {
layout: "constrained",
responsiveStyles: true,
},
integrations: [
react(),
emdash({
database: sqlite({ url: `file:${dbPath}` }),
storage: local({
directory: uploadDir,
baseUrl: "/_emdash/api/media/file",
}),
plugins: [auditLogPlugin()],
}),
],
devToolbar: { enabled: false },
});