fix: images in remotes
All checks were successful
Deploy to SFTP Server / build (push) Successful in 9m22s

This commit is contained in:
Max Richter
2025-10-22 16:00:21 +02:00
parent 2446629515
commit 24a66940e9
6 changed files with 129 additions and 131 deletions

View File

@@ -1,12 +1,12 @@
import { defineConfig } from 'astro/config';
import { i18n, filterSitemapByDefaultLocale } from "astro-i18n-aut/integration";
import { defineConfig } from "astro/config";
import { filterSitemapByDefaultLocale, i18n } from "astro-i18n-aut/integration";
import sitemap from "@astrojs/sitemap";
import Icons from 'unplugin-icons/vite'
import mdx from '@astrojs/mdx';
import glsl from 'vite-plugin-glsl';
import Icons from "unplugin-icons/vite";
import mdx from "@astrojs/mdx";
import glsl from "vite-plugin-glsl";
import svelte from "@astrojs/svelte";
import UnoCSS from 'unocss/astro'
import UnoCSS from "unocss/astro";
const defaultLocale = "de";
const locales = {
@@ -14,7 +14,7 @@ const locales = {
de: "de",
};
const DEFAULT_LAYOUT = '@layouts/Post.astro';
const DEFAULT_LAYOUT = "@layouts/Post.astro";
function setDefaultLayout() {
return function(_, file) {
@@ -27,6 +27,9 @@ export default defineConfig({
site: "https://max-richter.dev",
trailingSlash: "never",
prefetch: true,
image: {
remotePatterns: [{ protocol: "https" }],
},
build: {
format: "file",
},
@@ -34,30 +37,30 @@ export default defineConfig({
plugins: [
glsl(),
Icons({
compiler: 'svelte',
compiler: "svelte",
}),
],
server: {
watch: {
// Customize watch behavior to reduce file watchers
ignored: ['**/node_modules/**', '**/dist/**', '**/.git/**'],
usePolling: process.env.NODE_ENV === 'production',
ignored: ["**/node_modules/**", "**/dist/**", "**/.git/**"],
usePolling: process.env.NODE_ENV === "production",
},
},
},
markdown: {
remarkPlugins: [setDefaultLayout]
remarkPlugins: [setDefaultLayout],
},
integrations: [
i18n({
exclude: ["pages/**/*.json.ts", "pages/api/**/*",],
exclude: ["pages/**/*.json.ts", "pages/api/**/*"],
locales,
defaultLocale,
}),
mdx(),
svelte(),
UnoCSS({
injectReset: true
injectReset: true,
}),
sitemap({
i18n: {
@@ -66,5 +69,5 @@ export default defineConfig({
},
filter: filterSitemapByDefaultLocale({ defaultLocale }),
}),
]
],
});