project setup with core files including configuration, package management, and basic structure. Added .gitignore, README, and various TypeScript types for CMS components. Implemented initial components and layouts for the application.
This commit is contained in:
29
astro.config.mjs
Normal file
29
astro.config.mjs
Normal file
@@ -0,0 +1,29 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from "astro/config";
|
||||
import tailwind from "@tailwindcss/vite";
|
||||
import react from "@astrojs/react";
|
||||
import alpinejs from "@astrojs/alpinejs";
|
||||
|
||||
// https://astro.build/config
|
||||
import { fileURLToPath } from "url";
|
||||
import { resolve } from "path";
|
||||
|
||||
const __dirname = fileURLToPath(new URL(".", import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
vite: {
|
||||
plugins: [tailwind()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@middlelayer-types": resolve(__dirname, "./middlelayer/types"),
|
||||
"@middlelayer": resolve(__dirname, "./middlelayer"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
integrations: [react(), alpinejs()],
|
||||
|
||||
// URL-basierte Locale-Routing
|
||||
output: "server",
|
||||
adapter: undefined, // Für SSR (später kann ein Adapter hinzugefügt werden)
|
||||
});
|
||||
Reference in New Issue
Block a user