Files
emdash-marketing-template/astro.config.mjs
Kunthawat Greethong b6e76cc98b fix: remove Font component and fontProviders (esbuild parse error)
The Font component with spread syntax caused esbuild parse error
at Base.astro line 64. Replaced with direct Google Fonts link tag.

Also removed fonts[] array from astro.config.mjs since we're
loading Inter via <link> tag instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-01 10:18:59 +07:00

48 lines
933 B
JavaScript

import node from "@astrojs/node";
import react from "@astrojs/react";
import icon from "astro-iconset";
import { defineConfig } 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(),
icon({
include: {
ph: [
"chart-bar",
"check-circle",
"clock",
"cloud",
"code",
"currency-dollar",
"envelope",
"globe",
"heart",
"lifebuoy",
"lightning",
"lock",
"shield-check",
"sparkle",
"star",
"users-three",
],
},
}),
emdash({
database: sqlite({ url: "file:./data.db" }),
storage: local({
directory: "./uploads",
baseUrl: "/_emdash/api/media/file",
}),
}),
],
devToolbar: { enabled: false },
});