Fixes: 1. media.ts: wrap placeholder generation in try-catch 2. toolbar.ts: check r.ok, display error message in popover
37 lines
780 B
JavaScript
37 lines
780 B
JavaScript
import node from "@astrojs/node";
|
|
import react from "@astrojs/react";
|
|
import { defineConfig, fontProviders } from "astro/config";
|
|
import emdash, { local } from "emdash/astro";
|
|
import { sqlite } from "emdash/db";
|
|
|
|
export default defineConfig({
|
|
output: "server",
|
|
adapter: node({
|
|
mode: "standalone",
|
|
}),
|
|
image: {
|
|
layout: "constrained",
|
|
responsiveStyles: true,
|
|
},
|
|
integrations: [
|
|
react(),
|
|
emdash({
|
|
database: sqlite({ url: "file:./data.db" }),
|
|
storage: local({
|
|
directory: "./uploads",
|
|
baseUrl: "/_emdash/api/media/file",
|
|
}),
|
|
}),
|
|
],
|
|
fonts: [
|
|
{
|
|
provider: fontProviders.google(),
|
|
name: "Playfair Display",
|
|
cssVariable: "--font-serif",
|
|
weights: [400, 500, 600, 700],
|
|
fallbacks: ["serif"],
|
|
},
|
|
],
|
|
devToolbar: { enabled: false },
|
|
});
|