-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
125 lines (109 loc) · 3.62 KB
/
Copy pathastro.config.mjs
File metadata and controls
125 lines (109 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// SPDX-FileCopyrightText: 2024-2026 Peter König <peter.koenig@data-dna.eu>
// SPDX-License-Identifier: EUPL-1.2
import { defineConfig, envField } from "astro/config";
import node from "@astrojs/node";
import tailwindcss from "@tailwindcss/vite";
import mdx from "@astrojs/mdx";
import vue from "@astrojs/vue";
import { polygonSyncPlugin } from "./src/integrations/polygon-sync-plugin.mjs";
import { fileURLToPath } from "url";
export default defineConfig({
// Performance: Telemetrie deaktivieren (spart ~560ms)
telemetry: false,
site: "https://opn.data-dna.eu",
env: {
schema: {
// Datenbank
DB_HOST: envField.string({ context: "server", access: "secret" }),
DB_PORT: envField.number({ context: "server", access: "secret" }),
DB_NAME: envField.string({ context: "server", access: "secret" }),
DB_USER: envField.string({ context: "server", access: "secret" }),
DB_PASSWORD: envField.string({ context: "server", access: "secret" }),
// GIS / WFS-T
WFST_WORKSPACE: envField.string({ context: "server", access: "secret" }),
WFST_NAMESPACE: envField.string({ context: "server", access: "secret" }),
// WFS-T-Credentials stage-spezifisch: process.env[WFST_ENDPOINT_<STAGE>] zur Laufzeit
DEFAULT_CATEGORY_ICON: envField.string({
context: "server",
access: "public",
}),
// Kontakt-Formular
ALTCHA_HMAC_KEY: envField.string({ context: "server", access: "secret" }),
// SMTP
SMTP_HOST: envField.string({ context: "server", access: "secret" }),
SMTP_PORT: envField.number({ context: "server", access: "secret" }),
SMTP_SECURE: envField.boolean({ context: "server", access: "secret" }),
SMTP_USER: envField.string({ context: "server", access: "secret" }),
SMTP_PASS: envField.string({ context: "server", access: "secret" }),
// Email Empfänger/Absender
CONTACT_EMAIL_TO: envField.string({
context: "server",
access: "secret",
}),
CONTACT_EMAIL_FROM: envField.string({
context: "server",
access: "secret",
}),
// Debugging
APP_DEBUG: envField.boolean({
context: "server",
access: "public",
default: false,
}),
// Zitadel OIDC
ZITADEL_ISSUER: envField.string({ context: "server", access: "secret" }),
ZITADEL_CLIENT_ID: envField.string({
context: "server",
access: "secret",
}),
ZITADEL_CLIENT_SECRET: envField.string({
context: "server",
access: "secret",
}),
ZITADEL_PROJECT_ID: envField.string({
context: "server",
access: "secret",
}),
ZITADEL_ORG_ID: envField.string({ context: "server", access: "secret" }),
// Session-Verschlüsselung
SESSION_SECRET: envField.string({ context: "server", access: "secret" }),
},
},
output: "server",
adapter: node({ mode: "standalone" }),
vite: {
plugins: [tailwindcss()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
optimizeDeps: {
include: ["ol", "proj4", "vue"], // Pre-bundle GIS-Dependencies
},
css: { transformer: "lightningcss" },
build: { cssMinify: "lightningcss" },
server: {
hmr: {
host: "localhost",
port: 4325,
protocol: "ws",
},
},
},
server: {
host: "0.0.0.0",
port: 4321,
},
integrations: [
mdx(),
vue(),
polygonSyncPlugin({
watchDir: "src/content/kommunen",
autoSync: true,
followSymlinks: true,
debounceMs: 5000,
debug: process.env.APP_DEBUG === "true",
}),
],
});